/*
Theme Name: Mùa hè có Ve
Theme URI: https://muahecove.com/
Author: OpenAI
Description: Giao diện WordPress xanh dương pastel, tối giản, dành riêng cho website đăng và đọc truyện tiếng Việt.
Version: 2.10.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mua-he-co-ve
*/

:root {
  --mhcv-blue-050: #f5faff;
  --mhcv-blue-100: #eaf5ff;
  --mhcv-blue-200: #d6ebfb;
  --mhcv-blue-300: #b9dbf4;
  --mhcv-blue-400: #8ec3e8;
  --mhcv-blue-500: #65a8d8;
  --mhcv-blue-600: #458fc5;
  --mhcv-blue-700: #3476a7;
  --mhcv-blue-800: #2d6086;
  --mhcv-ink: #183247;
  --mhcv-muted: #6c8292;
  --mhcv-border: #d8e7f1;
  --mhcv-surface: #ffffff;
  --mhcv-bg: #f7fbfe;
  --mhcv-radius: 18px;
  --mhcv-radius-sm: 12px;
  --mhcv-shadow: 0 12px 34px rgba(56, 111, 150, .10);
  --mhcv-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mhcv-ink);
  background: var(--mhcv-bg);
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .mhcv-header { top: 32px; }
body.admin-bar .mhcv-reader-toolbar { top: 98px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mhcv-blue-700); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.mhcv-container { width: min(calc(100% - 32px), var(--mhcv-container)); margin-inline: auto; }
.mhcv-site-main { min-height: 68vh; padding: 38px 0 72px; }
.mhcv-screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.mhcv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(216, 231, 241, .92);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}
.mhcv-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.mhcv-brand,
.mhcv-brand-heading {
  margin: 0;
  color: var(--mhcv-blue-800);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}
.mhcv-brand a,
.mhcv-brand-heading a { color: inherit; }
.mhcv-header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.mhcv-library-link,
.mhcv-search-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--mhcv-border);
  border-radius: 999px;
  background: var(--mhcv-surface);
  color: var(--mhcv-blue-800);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.mhcv-library-link:hover,
.mhcv-search-toggle:hover { border-color: var(--mhcv-blue-300); background: var(--mhcv-blue-100); }
.mhcv-search-wrap { position: relative; }
.mhcv-search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--mhcv-border);
  border-radius: 999px;
  background: #fff;
}
.mhcv-search-form input[type="search"] {
  width: min(27vw, 270px);
  min-height: 42px;
  padding: 0 4px 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mhcv-ink);
}
.mhcv-search-form button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--mhcv-blue-700);
  cursor: pointer;
}
.mhcv-search-toggle { display: none; width: 42px; padding: 0; }

/* Common */
.mhcv-section + .mhcv-section { margin-top: 58px; }
.mhcv-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--mhcv-blue-800);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.mhcv-section-heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--mhcv-blue-300), transparent);
}
.mhcv-panel {
  border: 1px solid var(--mhcv-border);
  border-radius: var(--mhcv-radius);
  background: var(--mhcv-surface);
  box-shadow: var(--mhcv-shadow);
}
.mhcv-empty {
  grid-column: 1 / -1;
  padding: 36px 24px;
  border: 1px dashed var(--mhcv-blue-300);
  border-radius: var(--mhcv-radius);
  background: rgba(255,255,255,.72);
  color: var(--mhcv-muted);
  text-align: center;
}
.mhcv-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.mhcv-btn:hover { transform: translateY(-1px); }
.mhcv-btn-primary { color: #fff; background: var(--mhcv-blue-600); }
.mhcv-btn-primary:hover { color: #fff; background: var(--mhcv-blue-700); }
.mhcv-btn-soft { border-color: var(--mhcv-blue-200); color: var(--mhcv-blue-800); background: var(--mhcv-blue-100); }
.mhcv-btn-soft:hover { background: var(--mhcv-blue-200); }



/* Homepage introduction boxes */
.mhcv-home-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 42px;
}
.mhcv-home-intro-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.mhcv-home-intro-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(234,245,255,.72));
}
.mhcv-home-intro-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--mhcv-blue-400), var(--mhcv-blue-200));
}
.mhcv-home-intro-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.mhcv-home-intro-summary::-webkit-details-marker { display: none; }
.mhcv-home-intro-summary::marker { content: ""; }
.mhcv-home-intro-summary:focus-visible {
  outline: 3px solid rgba(101, 168, 216, .35);
  outline-offset: -3px;
}
.mhcv-home-intro-title {
  margin: 0;
  color: var(--mhcv-blue-800);
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.mhcv-home-intro-toggle {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--mhcv-blue-200);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  transition: transform .2s ease, background .2s ease;
}
.mhcv-home-intro-toggle::before,
.mhcv-home-intro-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--mhcv-blue-700);
  transform: translate(-50%, -50%);
}
.mhcv-home-intro-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.mhcv-home-intro-card[open] .mhcv-home-intro-toggle {
  transform: rotate(45deg);
  background: var(--mhcv-blue-100);
}
.mhcv-home-intro-card[open] .mhcv-home-intro-summary {
  border-bottom: 1px solid rgba(216, 231, 241, .88);
}
.mhcv-home-intro-content {
  padding: 18px clamp(20px, 3vw, 28px) clamp(22px, 3vw, 28px);
  color: var(--mhcv-ink);
  font-size: .96rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.mhcv-home-intro-content > :first-child { margin-top: 0; }
.mhcv-home-intro-content > :last-child { margin-bottom: 0; }
.mhcv-home-intro-content a {
  color: var(--mhcv-blue-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Story cards */
.mhcv-story-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.mhcv-story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mhcv-border);
  border-radius: var(--mhcv-radius);
  background: var(--mhcv-surface);
  box-shadow: 0 8px 24px rgba(48, 101, 138, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mhcv-story-card:hover { transform: translateY(-4px); border-color: var(--mhcv-blue-300); box-shadow: 0 16px 34px rgba(48,101,138,.14); }
.mhcv-story-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, var(--mhcv-blue-100), var(--mhcv-blue-300));
}
.mhcv-story-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mhcv-story-card:hover .mhcv-story-cover img { transform: scale(1.035); }
.mhcv-placeholder-cover {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--mhcv-blue-800);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
}
.mhcv-story-card-body { padding: 14px 15px 16px; }
.mhcv-story-card-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--mhcv-ink);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.mhcv-story-card-title a:hover { color: var(--mhcv-blue-700); }
.mhcv-story-card-meta { margin-top: 8px; color: var(--mhcv-muted); font-size: .82rem; }
.mhcv-story-card-tax { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mhcv-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--mhcv-blue-800);
  background: var(--mhcv-blue-100);
  font-size: .72rem;
  font-weight: 700;
}
.mhcv-home-card .mhcv-story-card-body { padding: 13px 14px 15px; }
.mhcv-home-card .mhcv-story-card-title { min-height: 0; text-align: center; }
.mhcv-home-card .mhcv-story-card-meta,
.mhcv-home-card .mhcv-story-card-tax { display: none; }

/* Archive and search */
.mhcv-archive-header { margin-bottom: 28px; }
.mhcv-archive-title { margin: 0 0 18px; color: var(--mhcv-blue-800); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.055em; }
.mhcv-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  max-width: 720px;
}
.mhcv-filter-form select,
.mhcv-filter-form input {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--mhcv-border);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--mhcv-ink);
}
.mhcv-filter-form select:focus,
.mhcv-filter-form input:focus { border-color: var(--mhcv-blue-400); box-shadow: 0 0 0 3px rgba(142,195,232,.2); }
.mhcv-filter-form button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; color: #fff; background: var(--mhcv-blue-600); font-weight: 700; cursor: pointer; }
.mhcv-pagination { margin-top: 36px; }
.mhcv-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.mhcv-pagination .page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--mhcv-border);
  border-radius: 11px;
  background: #fff;
}
.mhcv-pagination .current { border-color: var(--mhcv-blue-600); color: #fff; background: var(--mhcv-blue-600); }

/* Story detail */
.mhcv-story-detail {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 38px;
  padding: clamp(20px, 4vw, 38px);
}
.mhcv-story-side {
  min-width: 0;
  align-self: start;
}
.mhcv-story-detail-cover {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--mhcv-blue-100), var(--mhcv-blue-300));
}
.mhcv-story-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.mhcv-story-detail h1 { margin: 0 0 18px; color: var(--mhcv-blue-800); font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -.055em; }
.mhcv-story-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; margin-bottom: 18px; }
.mhcv-story-fact { color: #506b7c; }
.mhcv-story-fact strong { color: var(--mhcv-ink); }
.mhcv-story-taxonomies { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 22px; }
.mhcv-synopsis-title { margin: 25px 0 10px; color: var(--mhcv-blue-800); font-size: 1.18rem; }
.mhcv-synopsis { color: #3e5b6d; font-size: 1rem; }
.mhcv-synopsis > :first-child { margin-top: 0; }
.mhcv-synopsis > :last-child { margin-bottom: 0; }
.mhcv-story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mhcv-chapter-section { margin-top: 30px; padding: clamp(20px, 4vw, 30px); }
.mhcv-chapter-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mhcv-chapter-section h2 { margin: 0; color: var(--mhcv-blue-800); font-size: 1.6rem; letter-spacing: -.03em; }
.mhcv-chapter-count { color: var(--mhcv-muted); font-size: .88rem; }
.mhcv-chapter-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.mhcv-volume-heading {
  grid-column: 1 / -1;
  margin: 14px 0 2px;
  padding: 12px 16px;
  border: 1px solid var(--mhcv-blue-300);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mhcv-blue-100), var(--mhcv-blue-050));
  color: var(--mhcv-blue-800);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}
.mhcv-volume-heading:first-child { margin-top: 0; }
.mhcv-chapter-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--mhcv-border);
  border-radius: 12px;
  background: var(--mhcv-blue-050);
}
.mhcv-chapter-item:hover { border-color: var(--mhcv-blue-300); background: var(--mhcv-blue-100); }
.mhcv-chapter-item-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mhcv-chapter-item time { flex: 0 0 auto; color: var(--mhcv-muted); font-size: .77rem; }

/* Reader */
.mhcv-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mhcv-blue-400), var(--mhcv-blue-700));
}
.mhcv-reader-wrap { --reader-size: 19px; min-height: 70vh; }
.mhcv-reader-toolbar {
  position: sticky;
  top: 78px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--mhcv-border);
  background: rgba(247, 251, 254, .94);
  backdrop-filter: blur(14px);
}
.mhcv-reader-toolbar button,
.mhcv-reader-toolbar a {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--mhcv-border);
  border-radius: 10px;
  background: #fff;
  color: var(--mhcv-blue-800);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}
.mhcv-reader-toolbar button:hover,
.mhcv-reader-toolbar a:hover { border-color: var(--mhcv-blue-300); background: var(--mhcv-blue-100); }
.mhcv-reader-toolbar button.is-active { border-color: var(--mhcv-blue-500); background: var(--mhcv-blue-200); }
.mhcv-reader {
  width: min(calc(100% - 30px), 840px);
  margin: 34px auto 66px;
  padding: clamp(24px, 6vw, 58px);
  border: 1px solid var(--mhcv-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--mhcv-shadow);
}
.mhcv-reader-head { margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--mhcv-border); text-align: center; }
.mhcv-reader-story { color: var(--mhcv-blue-700); font-weight: 700; }
.mhcv-reader-head h1 { margin: 9px 0 5px; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.3; letter-spacing: -.035em; }
.mhcv-reader-date { color: var(--mhcv-muted); font-size: .84rem; }
.mhcv-reader-content {
  color: #263f50;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: var(--reader-size);
  font-kerning: normal;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.mhcv-reader-content p { margin: 0 0 1.15em; }
.mhcv-reader-content > :first-child { margin-top: 0; }
.mhcv-reader-content > :last-child { margin-bottom: 0; }
.mhcv-reader-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--mhcv-border);
}
.mhcv-reader-nav .mhcv-next { justify-self: end; }

body.mhcv-mode-paper { background: #f5efe1; }
body.mhcv-mode-paper .mhcv-reader { border-color: #dfd2b9; background: #fff9ec; }
body.mhcv-mode-paper .mhcv-reader-toolbar { border-color: #dfd2b9; background: rgba(245,239,225,.94); }
body.mhcv-mode-paper .mhcv-reader-content { color: #473d31; }
body.mhcv-mode-dark { --mhcv-bg: #111b25; --mhcv-ink: #e8f1f7; --mhcv-muted: #9db0bd; --mhcv-border: #2e4351; --mhcv-surface: #172632; background: #111b25; color: #e8f1f7; }
body.mhcv-mode-dark .mhcv-header,
body.mhcv-mode-dark .mhcv-reader-toolbar { background: rgba(23,38,50,.94); }
body.mhcv-mode-dark .mhcv-reader,
body.mhcv-mode-dark .mhcv-reader-toolbar button,
body.mhcv-mode-dark .mhcv-reader-toolbar a { border-color: #2e4351; background: #172632; }
body.mhcv-mode-dark .mhcv-reader-content { color: #dce8ee; }
body.mhcv-mode-dark .mhcv-reader-head { border-color: #2e4351; }
body.mhcv-mode-dark .mhcv-footer { background: #172632; }

/* Pages and footer */
.mhcv-page { padding: clamp(22px, 4vw, 36px); }
.mhcv-page h1 { margin-top: 0; color: var(--mhcv-blue-800); letter-spacing: -.04em; }
.mhcv-footer { padding: 26px 0; border-top: 1px solid var(--mhcv-border); background: #fff; color: var(--mhcv-muted); font-size: .85rem; }
.mhcv-footer-inner { text-align: center; }

@media (max-width: 1050px) {
  .mhcv-story-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body.admin-bar .mhcv-header { top: 46px; }
  body.admin-bar .mhcv-reader-toolbar { top: 114px; }
  .mhcv-story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
  .mhcv-story-detail { grid-template-columns: 220px minmax(0, 1fr); gap: 27px; }
  .mhcv-search-form input[type="search"] { width: 190px; }
}
@media (max-width: 680px) {
  .mhcv-container { width: min(calc(100% - 24px), var(--mhcv-container)); }
  .mhcv-header-inner { min-height: 68px; gap: 10px; }
  .mhcv-header-tools { gap: 7px; }
  .mhcv-library-link { width: 42px; padding: 0; font-size: 0; }
  .mhcv-library-link::before { content: "▦"; font-size: 1rem; }
  .mhcv-search-wrap .mhcv-search-form {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(86vw, 320px);
    box-shadow: var(--mhcv-shadow);
  }
  .mhcv-search-wrap.is-open .mhcv-search-form { display: flex; }
  .mhcv-search-wrap .mhcv-search-form input[type="search"] { width: 100%; }
  .mhcv-search-toggle { display: inline-flex; }
  .mhcv-site-main { padding-top: 28px; }
  .mhcv-home-intro-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 34px; }
  .mhcv-home-intro-summary { padding: 18px 20px; }
  .mhcv-home-intro-content { padding: 16px 20px 20px; }
  .mhcv-section + .mhcv-section { margin-top: 44px; }
  .mhcv-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .mhcv-story-card-body { padding: 11px 11px 13px; }
  .mhcv-story-card-title { font-size: .92rem; }
  .mhcv-story-detail { grid-template-columns: 1fr; padding: 18px; }
  .mhcv-story-side { width: min(62vw, 250px); }
  .mhcv-story-detail-cover { width: 100%; }
  .mhcv-story-facts { grid-template-columns: 1fr; gap: 7px; }
  .mhcv-chapter-list { grid-template-columns: 1fr; }
  .mhcv-chapter-item time { display: none; }
  .mhcv-filter-form { grid-template-columns: 1fr; }
  .mhcv-reader-toolbar { top: 68px; padding-inline: 8px; }
  .mhcv-reader-toolbar .mhcv-toolbar-label { display: none; }
  .mhcv-reader { width: min(calc(100% - 16px), 840px); margin-top: 18px; border-radius: 16px; }
  .mhcv-reader-nav { grid-template-columns: 1fr 1fr; }
  .mhcv-reader-nav .mhcv-toc { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .mhcv-reader-nav .mhcv-prev { grid-column: 1; grid-row: 2; }
  .mhcv-reader-nav .mhcv-next { grid-column: 2; grid-row: 2; }
}
@media (max-width: 380px) {
  .mhcv-brand, .mhcv-brand-heading { font-size: 1.18rem; }
  .mhcv-story-grid { gap: 10px; }
}


/* Comments */
.mhcv-comments {
  margin-top: 30px;
  padding: clamp(20px, 4vw, 30px);
}
.mhcv-comments-head { margin-bottom: 22px; }
.mhcv-comments h2,
.mhcv-comments .comment-reply-title {
  margin: 0;
  color: var(--mhcv-blue-800);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  letter-spacing: -.03em;
}
.mhcv-comments h2 span,
.mhcv-comments .comment-reply-title span {
  color: var(--mhcv-muted);
  font-size: .72em;
  font-weight: 600;
  letter-spacing: 0;
}
.mhcv-comments-head p,
.mhcv-comment-note {
  margin: 7px 0 0;
  color: var(--mhcv-muted);
  font-size: .9rem;
}
.mhcv-comment-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.mhcv-comment-list .children {
  margin: 14px 0 0 32px;
  padding: 0;
  list-style: none;
}
.mhcv-comment-list .comment-body {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--mhcv-border);
  border-radius: 14px;
  background: var(--mhcv-blue-050);
}
.mhcv-comment-list .comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mhcv-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}
.mhcv-comment-list .avatar { border-radius: 50%; }
.mhcv-comment-list .comment-metadata { color: var(--mhcv-muted); font-size: .78rem; }
.mhcv-comment-list .comment-content { color: #3e5b6d; }
.mhcv-comment-list .comment-content p:last-child { margin-bottom: 0; }
.mhcv-comment-list .reply { margin-top: 9px; }
.mhcv-comment-list .comment-reply-link { color: var(--mhcv-blue-700); font-size: .84rem; font-weight: 700; }
.mhcv-comments .comment-respond {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--mhcv-border);
}
.mhcv-comments .comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.mhcv-comments .comment-form > p { margin: 0; }
.mhcv-comments .comment-form-comment,
.mhcv-comments .comment-form-cookies-consent,
.mhcv-comments .form-submit,
.mhcv-comments .logged-in-as,
.mhcv-comments .mhcv-comment-note { grid-column: 1 / -1; }
.mhcv-comments label {
  display: block;
  margin-bottom: 6px;
  color: var(--mhcv-ink);
  font-size: .88rem;
  font-weight: 700;
}
.mhcv-comments input[type="text"],
.mhcv-comments input[type="email"],
.mhcv-comments textarea {
  width: 100%;
  border: 1px solid var(--mhcv-border);
  border-radius: 12px;
  background: #fff;
  color: var(--mhcv-ink);
  outline: 0;
}
.mhcv-comments input[type="text"],
.mhcv-comments input[type="email"] { min-height: 44px; padding: 0 12px; }
.mhcv-comments textarea { min-height: 150px; padding: 12px 14px; resize: vertical; }
.mhcv-comments input:focus,
.mhcv-comments textarea:focus { border-color: var(--mhcv-blue-400); box-shadow: 0 0 0 3px rgba(142,195,232,.2); }
.mhcv-comments small { display: block; margin-top: 5px; color: var(--mhcv-muted); font-size: .75rem; }
.mhcv-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--mhcv-muted);
  font-size: .82rem;
}
.mhcv-comments .comment-form-cookies-consent label { margin: 0; color: inherit; font-size: inherit; font-weight: 500; }
.mhcv-comment-submit {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--mhcv-blue-600);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.mhcv-comment-submit:hover { background: var(--mhcv-blue-700); }
.mhcv-comments .navigation { margin: 16px 0 24px; }
.mhcv-comments .nav-links { display: flex; justify-content: space-between; gap: 10px; }
.mhcv-comments-closed { color: var(--mhcv-muted); }
.mhcv-reader-comments {
  width: min(calc(100% - 30px), 840px);
  margin: -34px auto 66px;
}
body.mhcv-mode-paper .mhcv-comments,
body.mhcv-mode-paper .mhcv-comment-list .comment-body { border-color: #dfd2b9; background: #fff9ec; }
body.mhcv-mode-dark .mhcv-comments,
body.mhcv-mode-dark .mhcv-comment-list .comment-body,
body.mhcv-mode-dark .mhcv-comments input[type="text"],
body.mhcv-mode-dark .mhcv-comments input[type="email"],
body.mhcv-mode-dark .mhcv-comments textarea { border-color: #2e4351; background: #172632; color: #e8f1f7; }
body.mhcv-mode-dark .mhcv-comment-list .comment-content { color: #dce8ee; }

@media (max-width: 680px) {
  .mhcv-comments .comment-form { grid-template-columns: 1fr; }
  .mhcv-comments .comment-form > p { grid-column: 1; }
  .mhcv-comment-list .children { margin-left: 16px; }
  .mhcv-comment-list .comment-meta { align-items: flex-start; flex-direction: column; }
  .mhcv-reader-comments { width: min(calc(100% - 16px), 840px); margin-top: -30px; }
}


/* Follow / Jetpack Newsletter */
.mhcv-follow-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--mhcv-blue-300);
  border-radius: 999px;
  background: var(--mhcv-blue-100);
  color: var(--mhcv-blue-800);
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.mhcv-follow-button:hover { transform: translateY(-1px); border-color: var(--mhcv-blue-400); background: var(--mhcv-blue-200); }
body.mhcv-modal-open { overflow: hidden; }
.mhcv-follow-modal[hidden] { display: none !important; }
.mhcv-follow-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.mhcv-follow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 46, 64, .42);
  backdrop-filter: blur(5px);
}
.mhcv-follow-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--mhcv-blue-200);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(34, 78, 108, .24);
}
.mhcv-follow-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--mhcv-border);
  border-radius: 50%;
  background: #fff;
  color: var(--mhcv-blue-800);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.mhcv-follow-eyebrow { margin: 0 0 5px; color: var(--mhcv-blue-600); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mhcv-follow-card h2 { margin: 0 36px 8px 0; color: var(--mhcv-blue-800); font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -.035em; }
.mhcv-follow-intro { margin: 0 0 20px; color: var(--mhcv-muted); }
.mhcv-follow-form .jetpack_subscription_widget,
.mhcv-follow-form form { margin: 0; }
.mhcv-follow-form #subscribe-text,
.mhcv-follow-form .subscribe-text { color: var(--mhcv-muted); font-size: .9rem; }
.mhcv-follow-form input[type="email"],
.mhcv-follow-form input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--mhcv-border);
  border-radius: 12px;
  background: #fff;
  color: var(--mhcv-ink);
  outline: 0;
}
.mhcv-follow-form input[type="email"]:focus,
.mhcv-follow-form input[type="text"]:focus { border-color: var(--mhcv-blue-400); box-shadow: 0 0 0 3px rgba(142,195,232,.2); }
.mhcv-follow-form input[type="submit"],
.mhcv-follow-form button[type="submit"] {
  min-height: 46px;
  margin-top: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--mhcv-blue-600);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.mhcv-follow-form input[type="submit"]:hover,
.mhcv-follow-form button[type="submit"]:hover { background: var(--mhcv-blue-700); }
.mhcv-follow-unavailable {
  padding: 14px 16px;
  border: 1px dashed var(--mhcv-blue-300);
  border-radius: 12px;
  background: var(--mhcv-blue-050);
  color: var(--mhcv-muted);
  font-size: .9rem;
}
body.mhcv-mode-dark .mhcv-follow-card,
body.mhcv-mode-dark .mhcv-follow-close,
body.mhcv-mode-dark .mhcv-follow-form input[type="email"],
body.mhcv-mode-dark .mhcv-follow-form input[type="text"] { border-color: #2e4351; background: #172632; color: #e8f1f7; }

@media (max-width: 680px) {
  .mhcv-follow-button { padding: 0 11px; font-size: .82rem; }
  .mhcv-follow-card { border-radius: 18px; }
}
@media (max-width: 430px) {
  .mhcv-follow-button { width: 42px; padding: 0; font-size: 0; }
  .mhcv-follow-button::before { content: "♡"; font-size: 1.05rem; }
}


/* Story notice — inline under the cover, v2.9.3 */
.mhcv-story-notice-inline {
  margin-top: 14px;
  padding: 15px 16px 16px;
  border: 1px solid var(--mhcv-blue-200);
  border-left: 4px solid var(--mhcv-blue-400);
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fcff, var(--mhcv-blue-050));
  color: var(--mhcv-ink);
  box-shadow: 0 8px 24px rgba(65, 119, 154, .07);
}
.mhcv-story-notice-title {
  margin: 0 0 8px;
  color: var(--mhcv-blue-800);
  font-size: .95rem;
  line-height: 1.35;
  letter-spacing: 0;
}
.mhcv-story-notice-content {
  color: #456277;
  font-size: .9rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.mhcv-story-notice-content > :first-child { margin-top: 0; }
.mhcv-story-notice-content > :last-child { margin-bottom: 0; }
.mhcv-story-notice-content a {
  color: var(--mhcv-blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.mhcv-mode-dark .mhcv-story-notice-inline {
  border-color: #36546b;
  border-left-color: #6fa8cf;
  background: #172632;
}
body.mhcv-mode-dark .mhcv-story-notice-title { color: #d7ebf8; }
body.mhcv-mode-dark .mhcv-story-notice-content { color: #c8d8e3; }

/* Social links — v2.3 */
.mhcv-social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mhcv-social-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--mhcv-border);
  border-radius: 999px;
  background: #fff;
  color: var(--mhcv-blue-800);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.mhcv-social-link:hover {
  transform: translateY(-1px);
  border-color: var(--mhcv-blue-300);
  background: var(--mhcv-blue-050);
}
.mhcv-social-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mhcv-blue-100);
  color: var(--mhcv-blue-700);
  font-size: .74rem;
  font-weight: 900;
  flex: 0 0 auto;
}
.mhcv-footer-inner {
  gap: 16px;
  flex-wrap: wrap;
}
.mhcv-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
}
.mhcv-footer-social a {
  color: var(--mhcv-muted);
  font-size: .84rem;
  font-weight: 700;
}
.mhcv-footer-social a:hover { color: var(--mhcv-blue-700); }
.mhcv-btn-wattpad {
  border-color: var(--mhcv-blue-300);
  background: #fff;
  color: var(--mhcv-blue-800);
}
.mhcv-btn-wattpad:hover {
  border-color: var(--mhcv-blue-400);
  background: var(--mhcv-blue-050);
}
body.mhcv-mode-dark .mhcv-social-link,
body.mhcv-mode-dark .mhcv-btn-wattpad {
  border-color: #2e4351;
  background: #172632;
  color: #e8f1f7;
}
@media (max-width: 900px) {
  .mhcv-social-link {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .mhcv-social-label { display: none; }
}
@media (max-width: 620px) {
  .mhcv-social-links { gap: 5px; }
  .mhcv-social-link { width: 36px; min-height: 36px; }
  .mhcv-social-icon { width: 20px; height: 20px; font-size: .68rem; }
  .mhcv-footer-social { width: 100%; margin-left: 0; justify-content: center; }
}


/* Truyện H / protected adult stories — v2.4 */
.mhcv-h-section { position: relative; }
.mhcv-story-cover { position: relative; }
.mhcv-h-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(24, 50, 71, .82);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 16px rgba(24,50,71,.18);
}
.mhcv-story-card-h .mhcv-story-cover img { filter: saturate(.92); }
.mhcv-h-gate {
  width: min(100%, 680px);
  margin: 34px auto 70px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--mhcv-border);
  border-radius: 26px;
  background: var(--mhcv-surface);
  box-shadow: var(--mhcv-shadow);
  text-align: center;
}
.mhcv-h-gate-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--mhcv-blue-100);
  color: var(--mhcv-blue-800);
  font-size: 1.25rem;
  font-weight: 900;
}
.mhcv-h-gate h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.18; }
.mhcv-h-gate-lead { margin-bottom: 8px; }
.mhcv-h-password-notice {
  margin: 22px auto;
  padding: 14px 18px;
  border: 1px dashed var(--mhcv-blue-400);
  border-radius: 14px;
  background: var(--mhcv-blue-050);
  color: var(--mhcv-blue-800);
  font-size: 1.05rem;
}
.mhcv-h-error {
  margin: -8px 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff0f1;
  color: #9d2f3f;
  font-weight: 700;
}
.mhcv-h-form { margin-top: 20px; text-align: left; }
.mhcv-h-form label { display: block; margin-bottom: 7px; font-weight: 800; }
.mhcv-h-form-row { display: flex; gap: 10px; }
.mhcv-h-form-row input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 12px 14px;
  border: 1px solid var(--mhcv-border);
  border-radius: 12px;
  background: #fff;
  color: var(--mhcv-ink);
}
.mhcv-h-back { display: inline-block; margin-top: 22px; color: var(--mhcv-muted); font-weight: 700; }
body.mhcv-mode-dark .mhcv-h-gate { background: #132533; border-color: #2e4b60; }
body.mhcv-mode-dark .mhcv-h-password-notice { background: #193247; border-color: #4f7b9b; color: #d7ebf8; }
body.mhcv-mode-dark .mhcv-h-form-row input { background: #0f202c; border-color: #34536a; color: #eef7fc; }
@media (max-width: 640px) {
  .mhcv-h-form-row { flex-direction: column; }
  .mhcv-h-form-row .mhcv-btn { width: 100%; }
}


/* Khóa truyện thường — v2.6 */
.mhcv-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(65, 99, 121, .88);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 16px rgba(24,50,71,.16);
}
.mhcv-story-card-locked .mhcv-story-cover img {
  filter: saturate(.72) brightness(.94);
}
.mhcv-locked-gate {
  width: min(100%, 680px);
  margin: 34px auto 70px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--mhcv-border);
  border-radius: 26px;
  background: var(--mhcv-surface);
  box-shadow: var(--mhcv-shadow);
  text-align: center;
}
.mhcv-locked-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--mhcv-blue-100);
  font-size: 1.6rem;
}
.mhcv-locked-gate h1 {
  margin: 0 0 12px;
  color: var(--mhcv-blue-800);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.18;
}
.mhcv-locked-lead { margin: 0 0 20px; }
.mhcv-lock-reason {
  margin: 0 auto 24px;
  padding: 18px 20px;
  border: 1px solid var(--mhcv-border);
  border-radius: 16px;
  background: var(--mhcv-blue-050);
  text-align: left;
}
.mhcv-lock-reason-label {
  display: block;
  margin-bottom: 7px;
  color: var(--mhcv-blue-700);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mhcv-lock-reason p { margin: 0; color: var(--mhcv-ink); }
body.mhcv-mode-dark .mhcv-locked-gate { background: #132533; border-color: #2e4b60; }
body.mhcv-mode-dark .mhcv-lock-reason { background: #193247; border-color: #34536a; }
body.mhcv-mode-dark .mhcv-lock-reason p { color: #eef7fc; }

.mhcv-lock-access-note {
  margin: -8px auto 22px;
  padding: 14px 18px;
  border: 1px solid var(--mhcv-blue-200);
  border-radius: 14px;
  background: #fff;
  color: var(--mhcv-ink);
  text-align: left;
}
.mhcv-lock-access-note strong,
.mhcv-lock-access-note span { display: block; }
.mhcv-lock-access-note strong { margin-bottom: 4px; color: var(--mhcv-blue-800); }
.mhcv-lock-access-note span { color: var(--mhcv-muted); font-size: .94rem; line-height: 1.6; }
body.mhcv-mode-dark .mhcv-lock-access-note { background:#172a38; border-color:#34536a; }
body.mhcv-mode-dark .mhcv-lock-access-note strong { color:#d7ebf8; }
body.mhcv-mode-dark .mhcv-lock-access-note span { color:#afc5d4; }

.mhcv-locked-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
