/*
Theme Name: Blog MV — CineVibe
Theme URI: https://cinevibe.press
Author: CineVibe
Author URI: https://cinevibe.press
Description: Magazine-style dark theme for film & movie blogs. Typography-first, minimal, fully responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blog-mv
Tags: blog, news, magazine, dark, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   CINEVIBE — Movie / Film News Blog
   Minimal, typography-first design system
   ========================================================= */

:root {
  --bg: #0F0E17;
  --surface: #17162A;
  --surface-2: #1F1E36;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #FFFFFE;
  --text-muted: #A7A9BE;
  --text-dim: #6E7090;

  --accent:   #FF5C8A;
  --accent-2: #7F5AF0;
  --accent-3: #2CB67D;
  --warn: #FFB23F;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-heading: "Fraunces", "Source Serif 4", "Times New Roman", serif;
  --font-body: "Roboto", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --density: 1;
  --gap-1: calc(4px * var(--density));
  --gap-2: calc(8px * var(--density));
  --gap-3: calc(12px * var(--density));
  --gap-4: calc(16px * var(--density));
  --gap-5: calc(24px * var(--density));
  --gap-6: calc(32px * var(--density));
  --gap-7: calc(48px * var(--density));
  --gap-8: calc(64px * var(--density));

  --header-h: 130px;
}

[data-theme="light"] {
  /* --bg: #FFFBF7; */
  --bg: #FFF;
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --line: rgba(15,14,23,0.08);
  --line-strong: rgba(15,14,23,0.18);
  --text: #0F0E17;
  --text-muted: #57596B;
  --text-dim: #898BA3;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; min-height: 100%; }
body { min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---- Type system ---- */
.font-display {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.font-display-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Tag / Badge ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.solid  { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag.muted  { color: var(--text-muted); border-color: var(--line-strong); }
.tag.green  { color: var(--accent-3); border-color: var(--accent-3); }
.tag.violet { color: var(--accent-2); border-color: var(--accent-2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---- Dividers ---- */
.divider       { height: 1px; background: var(--line); width: 100%; }
.divider-strong{ height: 1px; background: var(--line-strong); width: 100%; }

/* ---- Stars ---- */
.stars { display: inline-flex; gap: 1px; color: var(--warn); }
.stars svg { width: 12px; height: 12px; fill: currentColor; }
.stars .star-empty { fill: none; stroke: currentColor; stroke-width: 1.5; }
.stars .star-half { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---- Poster / Image wrapper ---- */
.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  isolation: isolate;
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  color: white;
  transition: transform .2s;
}
.poster:hover .play-btn { transform: scale(1.08); }
.poster .duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,0,0,.7); color: #fff;
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 6px; border-radius: 4px;
}
.poster .cat-badge {
  position: absolute; top: 10px; left: 10px;
}

/* ---- Cards ---- */
.card-link { display: block; cursor: pointer; }
.card-link:hover .card-title { color: var(--accent); }
.card-title {
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Reading progress ---- */
#reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: var(--line);
  z-index: 100; pointer-events: none;
}
#reading-progress span {
  display: block; height: 100%;
  background: var(--accent);
  width: 0%; transition: width .1s linear;
}

/* ---- Marquee (breaking ticker) ---- */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: var(--gap-7);
  animation: scroll-x 40s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

/* ---- Pulse live dot ---- */
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); animation: pulse-live 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ---- Nav links ---- */
.nav-link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--accent);
}

/* ---- Inputs ---- */
.input {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-dim); }
textarea.input { resize: vertical; min-height: 120px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---- Truncation helpers ---- */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Grain overlay ---- */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==============================================
   LAYOUT — HEADER
   ============================================== */

#site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 500;
  border-bottom: 1px solid var(--line);
  transform: translateZ(0); /* GPU layer — ngăn repaint khi keyboard iOS mở */
  will-change: transform;
}

/* Breaking ticker bar */
#breaking-bar {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 32px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width:1024px) {
.cat-pill {
    font-size: 10px !important;
    padding: 6px 6px !important;
  }
}

@media (max-width:600px) {
  .breaking-inner {
    padding: 6px 6px;
    font-size: 8px;
  }
  .cat-pill {
    font-size: 10px !important;
    padding: 6px 6px !important;
  }
}
.breaking-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breaking-link:hover {
  color: var(--text);
}
.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  flex-shrink: 0;
}
.breaking-scroll {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.breaking-date {
  flex-shrink: 0;
  color: var(--text-dim);
}

/* Main nav bar */
#nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1380px;
  margin: 0 auto;
  gap: 24px;
}

/* Logo */
.site-logo {
  width: 120px;
}

.site-logo img {
  height: auto;
}

.site-logo a {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-vibe {
  font-style: italic;
  color: var(--accent);
}
.logo-dot {
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  margin-left: 2px;
  transform: translateY(-2px);
}

.mobile-nav-logo {
  width: 120px;
}

.mobile-nav-logo img {
  height: auto;
}

/* Desktop nav — scroll ngang khi quá dài */
#primary-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* ẩn scrollbar trên tất cả browser */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* fade hai mép khi overflow */
  mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
  padding: 0 4px;
}
#primary-nav::-webkit-scrollbar { display: none; }

#primary-nav .nav-link {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}
.nav-icon-btn:hover { color: var(--text); }

/* Search overlay */
#search-overlay {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
}
#search-overlay.open { display: flex; }
#search-overlay input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 200px;
}
@media (max-width:600px) {
  #search-overlay input {
    width: 139px;
    font-size: 16px; /* ngăn iOS Safari tự zoom khi focus input */
  }
  #search-overlay form {
    display: flex;
  }
}
#search-overlay input::placeholder { color: var(--text-dim); }

/* Ẩn icon kính lúp khi overlay mở */
#search-overlay.open > form > svg { display: none; }

/* Ẩn native clear button của input[type="search"] */
#search-overlay input[type="search"]::-webkit-search-cancel-button,
#search-overlay input[type="search"]::-webkit-search-decoration { display: none; }
#search-overlay input[type="search"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* Mobile nav — slide panel */
#mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1099;
  opacity: 0;
  transition: opacity .3s;
}
#mobile-nav-overlay.open { display: block; opacity: 1; }

#mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--bg);
  border-right: 1px solid var(--line);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-nav-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.mobile-nav-close:hover { color: var(--text); background: var(--surface-2); }

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 32px;
}
.mobile-nav-list { list-style: none; }
.mobile-nav-item { border-bottom: 1px solid var(--line); }
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color .2s;
  flex: 1;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--accent); }

/* Category pills bar */
#cat-pills {
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
#cat-pills::-webkit-scrollbar { display: none; }
.cat-pills-inner {
  display: flex;
  padding: 14px 32px;
  gap: 0;
  max-width: 1380px;
  margin: 0 auto;
}
.cat-pill {
  position: relative;
  padding: 4px 10px;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color .2s;
  cursor: pointer;
}
.cat-pill:not(:last-child)::before {
  content: "-";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
}
.cat-pill.active,
.cat-pill:hover { color: var(--text); }
.cat-pill.active { color: var(--text); font-weight: 500; }
.cat-pill.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
}

/* ==============================================
   LAYOUT — MAIN CONTENT
   ============================================== */

#page-wrap {
  max-width: 1380px;
  margin: 0 auto;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding: 48px 32px;
}

.main-content { min-width: 0; }

/* Section heading */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}
.section-head-eyebrow { margin-bottom: 6px; }
.section-head h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.section-head-action {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-head-action:hover { color: var(--text); }

/* Content sections spacing */
.content-section {
  padding-bottom: 56px;
}
.content-section + .content-section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

/* ==============================================
   CARDS
   ============================================== */

/* PostCard */
.post-card { display: block; cursor: pointer; }
.post-card:hover .card-title { color: var(--accent); }
.post-card-img {
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.post-card-img.aspect-16-10 { aspect-ratio: 16/10; }
.post-card-img.aspect-16-9 { aspect-ratio: 16/9; }
.post-card-img.aspect-4-3   { aspect-ratio: 4/3; }
.post-card-img.aspect-3-4   { aspect-ratio: 3/4; }
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.post-card-excerpt {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PostRow */
.post-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.post-row:hover .card-title { color: var(--accent); }
.post-row-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
}
.post-row-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.post-row-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-row-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}
.post-row-avatar {
  width: 22px; height: 22px;
  border-radius: 999px;
  object-fit: cover;
}

/* Cards grid */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── Layout: card-top (3 cột, ảnh trên, badge căn giữa) ── */
.cards-grid-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card-top-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-top-link:hover .card-top-title { color: var(--accent); }
.card-top-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.card-top-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card-top-link:hover .card-top-img-wrap img { transform: scale(1.04); }
.card-top-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.card-top-body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-top-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.22;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-top-date {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Layout: list-mini (4 cột × N hàng, thumbnail kèm title) ── */
.list-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 28px;
}
.list-mini-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.list-mini-item:hover .list-mini-title { color: var(--accent); }
.list-mini-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.list-mini-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.list-mini-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}
.list-mini-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.list-mini-cat {
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ==============================================
   HERO (Homepage)
   ============================================== */

/* Hero nằm full chiều rộng (trải qua cả vùng sidebar) */
.hero-fullwidth {
  padding: 48px 32px 0;
}
.hero-main {
  max-width: 100%;
}

/* Khi content-sidebar-wrap theo sau hero, bỏ padding-top để liền mạch */
.hero-fullwidth + .content-sidebar-wrap {
  padding-top: 24px;
}

/* Sections 4–5: full width, không bị sidebar */
.sec-fullwidth {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 900px) {
  .hero-fullwidth { padding: 28px 20px 0; }
  .sec-fullwidth  { padding: 0 20px; }
}

/* -- Hero cũ (giữ lại phòng khi dùng ở trang khác) -- */
.hero-article { padding-bottom: 56px; }
.hero-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 14px;
  transition: color .2s;
}
.hero-article:hover .hero-title { color: var(--accent); }
.hero-excerpt {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.hero-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  object-fit: cover;
}
.hero-author-name { font-size: 13px; font-weight: 500; }
.hero-author-meta {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==============================================
   HERO 3 CỘT (Homepage)
   ============================================== */

.hero-3col {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 20px 0;
}

/* ── Cột trái: 5 mini items ── */
.hero-left {
  border-right: 1px solid var(--line-strong);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.hero-mini-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s;
}

@media (max-width: 600px) {
  .hero-mini-item {
    grid-template-columns: 60px 1fr;
  }
}

.hero-mini-item:first-child { padding-top: 0; }
.hero-mini-item:last-child  { border-bottom: 0; padding-bottom: 0; }
.hero-mini-item:hover { opacity: .8; }
.hero-mini-thumb {
  width: 100px;
  aspect-ratio: 13/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.hero-mini-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-mini-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.hero-mini-item:hover .hero-mini-title { color: var(--accent); }

/* ── Cột giữa: hero chính ── */
.blogmv-home-h1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  transform: translateY(-100%);
}

.hero-center {
  padding: 0 24px;
}
.hero-center-link { display: block; }
.hero-center-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.hero-center-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hero-center-link:hover .hero-center-img img { transform: scale(1.03); }
.hero-center-title {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
  transition: color .2s;
}
.hero-center-link:hover .hero-center-title { color: var(--accent); }
.hero-center-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  display: none;
  margin-top: 8px;
}
.hero-center-bullet {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.2;
}

/* ── Cột phải: 2 card dọc ── */
.hero-right {
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-right-card {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hero-right-card:first-child { padding-top: 0; }
.hero-right-card:last-child  { border-bottom: 0; padding-bottom: 0; }
.hero-right-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}
.hero-right-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hero-right-card:hover .hero-right-img img { transform: scale(1.03); }
.hero-right-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.hero-right-card:hover .hero-right-title { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-3col {
    grid-template-columns: 250px 1fr 220px;
    gap: 0;
  }
}
@media (min-width: 861px) and (max-width: 1024px) {
  .hero-center-sub {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 860px) {
  .hero-3col {
    grid-template-columns: 1fr 310px;
    grid-template-rows: auto auto;
  }
  /* Cột phải: hero-left (5 mini) spans 2 rows */
  .hero-left {
    display: flex;
    grid-column: 2;
    grid-row: 1 / 3;
    border-right: 0;
    border-left: 1px solid var(--line-strong);
    padding-right: 0;
    padding-left: 18px;
  }
  /* Cột trái trên: hero chính */
  .hero-center {
    grid-column: 1;
    grid-row: 1;
    padding: 0 18px 16px 0;
  }
  /* Cột trái dưới: 2 card ngang hàng */
  .hero-right {
    grid-column: 1;
    grid-row: 2;
    border-left: 0;
    padding-left: 0;
    padding-right: 18px;
    border-top: 1px solid var(--line-strong);
    padding-top: 16px;
    flex-direction: row;
    gap: 16px;
  }
  .hero-right-card {
    flex: 1;
    border-bottom: 0;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .hero-3col {
    grid-template-columns: 1fr 140px;
    grid-template-rows: auto auto;
  }
  .hero-left {
    display: flex;
    grid-column: 2;
    grid-row: 1 / 3;
    border-right: 0;
    border-left: 1px solid var(--line-strong);
    padding-right: 0;
    padding-left: 6px;
  }
  .hero-mini-thumb { width: 60px; }
  .hero-mini-item  { gap: 8px; }
  .hero-mini-title { font-size: 12px; -webkit-line-clamp: 3; line-clamp: 3; }
  .hero-center {
    grid-column: 1;
    grid-row: 1;
    padding: 0 6px 12px 0;
  }
  .hero-center-title {
    font-size: 16px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-center-sub { display: none; }
  .hero-right {
    grid-column: 1;
    grid-row: 2;
    border-left: 0;
    padding-left: 0;
    padding-right: 6px;
    border-top: 1px solid var(--line-strong);
    padding-top: 12px;
    flex-direction: row;
    gap: 10px;
  }
  .hero-right-card {
    flex: 1;
    border-bottom: 0;
    padding: 0;
  }
  .hero-right-title { font-size: 12px; -webkit-line-clamp: 3; line-clamp: 3; }
}

/* ==============================================
   SLIDER (dưới Hero)
   ============================================== */

.hero-slider-wrap {
  padding: 24px 0px 28px;
  border-bottom: 1px solid var(--line-strong);
}

/* Tái sử dụng .section-head — thêm margin-bottom nhỏ hơn */
.hero-slider-wrap .section-head {
  margin-bottom: 16px;
}

.hero-slider {
  position: relative;
}

.hero-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.hero-slider-track::-webkit-scrollbar { display: none; }

.slider-card {
  flex: 0 0 calc(16.666% - 14px); /* ~6 cards visible */
  min-width: 0;
  scroll-snap-align: start;
  display: block;
}

.slider-card-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.slider-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.slider-card:hover .slider-card-img img { transform: scale(1.04); }

.slider-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.slider-card:hover .slider-card-title { color: var(--accent); }

/* Prev / Next buttons */
.slider-btn {
  position: absolute;
  top: calc(50% - 24px); /* giữa theo phần ảnh 16/9 */
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 2;
  transition: background .2s, opacity .2s;
  cursor: pointer;
}
.slider-btn:hover { background: var(--surface-2); }
.slider-btn:disabled { opacity: 0; pointer-events: none; }
.slider-prev { left: -18px; }
.slider-next { right: -18px; }

@media (max-width: 1100px) {
  .slider-card { flex: 0 0 calc(25% - 12px); }
}
@media (max-width: 860px) {
  .hero-slider-wrap { padding: 20px 20px 24px; }
  .slider-card { flex: 0 0 calc(33.333% - 11px); }
  .slider-btn  { display: none; }
}

@media (max-width: 600px) {
  .slider-card { flex: 0 0 calc(50% - 8px); }
  .hero-slider-wrap { padding: 15px 0 15px 0; }

}

/* ==============================================
   SIDEBAR
   ============================================== */

#sidebar {
  display: flex;
  flex-direction: column;
}
#sidebar > * {
  margin: 20px 0;
}
#sidebar h2,
#sidebar h3,
#sidebar h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sidebar-about {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.sidebar-about-logo {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 28px;
  color: #fff;
  font-style: italic;
}
.sidebar-about h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.sidebar-about p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.sidebar-socials {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.sidebar-social-btn {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.sidebar-social-btn:hover { color: var(--text); border-color: var(--text); }

.sidebar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 16px;
}
.sidebar-section-head h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* Popular posts */
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item {
  display: grid;
  grid-template-columns: 32px 70px 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.popular-item:hover .card-title { color: var(--accent); }
.popular-num {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.popular-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
}
.popular-cat {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.popular-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  transition: color .2s;
}

/* Newsletter widget */
.sidebar-newsletter {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

@media (max-width:576px) {
  #sidebar {
    margin: 20px 0 20px 0;
  }
}
.sidebar-newsletter .eyebrow { color: var(--accent); margin-bottom: 8px; }
.sidebar-newsletter h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.sidebar-newsletter p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

/* Categories sidebar */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list-item a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color .2s;
}
.cat-list-item a:hover { color: var(--accent); }
.cat-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}
.cat-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* Editor's picks */
.editor-picks { display: flex; flex-direction: column; gap: 16px; }
.editor-pick { cursor: pointer; }
.editor-pick:hover .card-title { color: var(--accent); }
.editor-pick-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.editor-pick-cat {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.editor-pick-title {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color .2s;
}

/* Tag cloud */
.tag-cloud { display: flex; gap: 6px; flex-wrap: wrap; }

/* Ad slot */
.sidebar-ad {
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-ad img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px dashed var(--line-strong);
}
.sidebar-ad-banner {
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 24px;
  padding: 20px;
  line-height: 1.1;
  margin-bottom: 12px;
}

/* ==============================================
   ARCHIVE PAGE
   ============================================== */

.archive-header {
  padding: 64px 32px 48px;
  border-bottom: 1px solid var(--line);
}
.archive-title {
  font-family: var(--font-heading);
  font-size: 84px;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-bottom: 20px;
}
.archive-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
}
.archive-cat-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Archive featured ── */
.archive-featured {
  padding: 28px 32px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
}

/* Vị trí các phần tử trong grid */
.af-img-link  { grid-column: 1; grid-row: 1; }
.af-body      { grid-column: 2; grid-row: 1; }
.af-right     { grid-column: 3; grid-row: 1 / 3; } /* span cả 2 hàng */
.af-sub-grid  { grid-column: 1 / 3; grid-row: 2; } /* chỉ cột 1+2 */

/* Cột trái: ảnh hero */
.af-img-link { display: block; padding: 0px 20px 20px 0px; }
.af-hero-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.af-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.af-img-link:hover .af-hero-img img { transform: scale(1.03); }

/* Cột giữa: title + excerpt + meta */
.af-body {
  padding: 0 20px;
  border-left: 1px solid var(--line-strong);
}
.af-title {
  font-size: clamp(20px, 2vw, 28px);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.af-title a { transition: color .2s; }
.af-title a:hover { color: var(--accent); }
.af-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.af-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  color: var(--text-dim);
}
.af-cmt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

/* Cột phải: 1 card ảnh + 4 mini items */
.af-right {
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}
.af-right-card { display: block; margin-bottom: 10px; }
.af-right-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.af-right-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.af-right-card:hover .af-right-img img { transform: scale(1.04); }
.af-right-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.af-right-card:hover .af-right-title { color: var(--accent); }

/* Mini items */
.af-mini {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.af-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.af-mini-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  flex: 1;
  min-width: 0;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.af-mini:hover .af-mini-title { color: var(--accent); }
.af-cmt-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* Hàng dưới: 3 card ảnh (cột 1+2) */
.af-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  padding-right: 20px;
  align-content: start;
}
.af-sub-card { display: block; }
.af-sub-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.af-sub-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.af-sub-card:hover .af-sub-img img { transform: scale(1.04); }
.af-cmt-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  line-height: 1;
}
.af-sub-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.af-sub-card:hover .af-sub-title { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
  .archive-featured { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .af-img-link { grid-column: 1; grid-row: 1; }
  .af-body     { grid-column: 2; grid-row: 1; }
  .af-right {
    grid-column: 1 / -1;
    grid-row: 2;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 16px;
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.1fr);
    column-gap: 24px;
    row-gap: 0;
  }
  .af-sub-grid { grid-column: 1 / -1; grid-row: 3; padding-right: 0; }
  .af-right-card { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .af-mini { grid-column: 2; }
}
@media (max-width: 680px) {
  .archive-featured { padding: 20px; grid-template-columns: 1fr; grid-template-rows: auto; }
  .af-img-link { grid-column: 1; grid-row: 1; padding-right: 0; margin-bottom: 16px; }
  .af-body     { grid-column: 1; grid-row: 2; border-left: 0; padding: 0; margin-bottom: 16px; }
  .af-right    { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; }
  .af-sub-grid { grid-column: 1; grid-row: 4; grid-template-columns: 1fr; padding-right: 0; }
  .af-right-card { flex: none; grid-column: auto; grid-row: auto; }
  .af-mini { flex: none; grid-column: auto; }
}

/* Toolbar */
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
}
.toolbar-count {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toolbar-controls { display: flex; align-items: center; gap: 16px; }
.sort-pills {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.sort-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}
.sort-pill.active {
  background: var(--text);
  color: var(--bg);
}
.layout-btns { display: flex; gap: 6px; }
.layout-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}
.layout-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

/* ==============================================
   PAGINATION
   ============================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}
.page-num {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.page-num.current,
.page-num:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.page-dots { color: var(--text-dim); padding: 0 6px; }

/* ==============================================
   SINGLE POST
   ============================================== */

.single-wrap {
/*   max-width: 1100px; */
  margin: 0 auto;
  padding: 64px 32px 0;
}

article > figure {
	width: 100% !important;
}

.single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.single-breadcrumb > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.single-breadcrumb > span,
.single-breadcrumb > a {
  flex-shrink: 0;
}
.single-breadcrumb > span:last-child { flex-shrink: 1; }
.single-breadcrumb a:hover { color: var(--text); }
.single-title {
  font-family: var(--font-heading);
  font-size: 45px;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.single-excerpt {
  font-size: 21px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 760px;
}
.single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.single-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.single-avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  object-fit: cover;
}
.single-author-name { font-size: 14px; font-weight: 500; }
.single-author-meta {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}
.single-actions { display: flex; align-items: center; gap: 8px; }
.rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* Hero image */
.single-hero-img-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 48px;
}
.single-hero-img {
  aspect-ratio: 16/8;
  border-radius: var(--radius);
}
.single-img-caption {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-top: 10px;
  text-align: center;
}

/* Single body grid */
.single-body-grid {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* Share rail */
.single-share-rail {
  position: sticky;
  top: 140px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  align-items: center;
}
.share-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.share-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.share-btn:hover, .size-btn:hover { color: var(--text); border-color: var(--text); }

.size-btn {
  place-items: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}

/* Article body */
.article-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.single-body-grid .article-body {
  max-width: 680px;
}
.article-body > p,
.article-body > div > p {
  margin-bottom: 24px;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-body .wp-block-embed p,
.article-body figure p,
.article-body .tiktok-embed p {
  text-align: left;
  hyphens: none;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-top: 36px;
  margin-bottom: 12px;
  scroll-margin-top: 100px;
}
.article-body blockquote {
  margin: 40px 0;
  padding: 24px 0 24px 32px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.article-body blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body img {
  border-radius: var(--radius);
  margin: 32px auto;
  display: block;
}
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }

/* ── Responsive embeds: YouTube, TikTok, Maps, iframes ── */
.article-body iframe,
.article-body embed,
.article-body object,
.article-body video {
  max-width: 100%;
  width: 100%;
  display: block;
  margin: 24px auto;
  border: none;
}

/* WordPress oembed / block-embed wrappers */
.article-body .wp-block-embed,
.article-body .wp-block-embed__wrapper,
.article-body figure.wp-block-embed,
.article-body .jetpack-video-wrapper,
.article-body .video-container {
  position: relative;
  width: 100%;
  margin: 28px 0;
  overflow: hidden;
}

/* Giữ tỉ lệ 16:9 cho video embed (YouTube, TikTok video, Maps) */
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.article-body .wp-block-embed-youtube .wp-block-embed__wrapper,
.article-body .wp-block-embed-vimeo .wp-block-embed__wrapper,
.article-body .wp-block-embed-tiktok .wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
}
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-vimeo .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-tiktok .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* TikTok blockquote embed (script-based) */
.article-body .tiktok-embed {
  max-width: 100% !important;
  min-width: unset !important;
  margin: 24px auto;
}

/* Google Maps iframe */
.article-body .map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
}
.article-body .map-embed iframe {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* WordPress figure / caption */
.article-body figure {
  margin: 28px 0;
  overflow: hidden;
}
.article-body figure img { margin: 0 auto; }
.article-body figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  margin-top: 8px;
}

/* Ngăn bất kỳ thành phần nào tràn ra ngoài article-body */
.article-body {
  overflow-x: hidden;
}

/* Drop cap */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 88px;
  line-height: 0.85;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--accent);
}
/* Các block sau drop-cap không bị float ảnh hưởng */
.drop-cap .wp-block-embed,
.drop-cap iframe,
.drop-cap figure {
  clear: both;
}

/* Verdict box */
.verdict-box {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.verdict-box .eyebrow { color: var(--accent); margin-bottom: 10px; }
.verdict-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.verdict-score {
  font-family: var(--font-heading);
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.verdict-score-label {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.verdict-summary {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Post tags */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; margin-bottom: 32px; }

/* Author card */
.author-card {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0;
}
.author-card-avatar {
  margin: 0;
  width: 64px; height: 64px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.author-card-name {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.author-card-bio { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Comments */
.comments-section { margin-top: 56px; }
.comments-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.comments-heading-row h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.comment-form-wrap {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--surface-2);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.comment-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.comment-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.comment-actions-row a { cursor: pointer; transition: color .2s; }
.comment-actions-row a:hover { color: var(--text); }

/* Single sidebar */
.single-toc {
  position: sticky;
  top: 40px;
  align-self: start;
}
.toc-list { display: flex; flex-direction: column; gap: 2px; }
.toc-item a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.toc-item.active a,
.toc-item a:hover {
  color: var(--text);
  border-left-color: var(--accent);
}

/* Related posts */
.related-section {
  border-top: 1px solid var(--line);
  padding: 64px 32px;
  background: var(--surface);
}

/* ==============================================
   SEARCH PAGE
   ============================================== */

.search-header {
  padding: 72px 32px 48px;
  border-bottom: 1px solid var(--line);
}
.search-title {
  font-family: var(--font-heading);
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  max-width: 580px;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 15px;
}
.search-count {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.search-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 48px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.search-filters {
  position: sticky;
  top: 140px;
  align-self: start;
}
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-item a {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s;
  color: var(--text-muted);
}
.filter-item a:hover,
.filter-item.active a {
  background: var(--surface-2);
  color: var(--text);
}
.filter-count {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}
.search-result-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.search-result-item:hover .card-title { color: var(--accent); }
.search-result-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
}
.search-highlight {
  background: var(--accent);
  color: #fff;
  padding: 0 4px;
  border-radius: 3px;
}
.suggested-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.no-results {
  text-align: center;
  padding: 80px 20px;
}
.no-results h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 12px;
}

/* ==============================================
   CONTACT PAGE
   ============================================== */

.contact-header {
  padding: 72px 32px 56px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.contact-title {
  font-family: var(--font-heading);
  font-size: 96px;
  letter-spacing: -0.04em;
  line-height: 0.92;
  max-width: 980px;
  margin: 0 auto;
}
.contact-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 32px;
}
.contact-info-col { display: flex; flex-direction: column; gap: 32px; }
.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-section h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-info-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-info-section a.email-link {
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--accent);
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
/* Map SVG */
.contact-map {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.contact-map-inner {
  aspect-ratio: 21/8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.contact-map-inner iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-label {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==============================================
   404 PAGE
   ============================================== */

.not-found-wrap {
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.not-found-inner {
  padding: 120px 32px 100px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.not-found-404 {
  font-family: var(--font-heading);
  font-size: 220px;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin-bottom: 32px;
  position: relative;
}
.not-found-subtitle {
  font-size: 24px;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 400;
}
.not-found-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
}
.not-found-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.not-found-suggestions {
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: left;
}

/* ==============================================
   TAXONOMY / TERM
   ============================================== */

.term-header {
  padding: 64px 32px 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.term-color-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.term-title {
  font-family: var(--font-heading);
  font-size: 84px;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-bottom: 20px;
}
.term-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
}
.term-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ==============================================
   FOOTER
   ============================================== */

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.social-link {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.social-link:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface-2);
}

#site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 64px 32px 32px;
  background: var(--surface);
}
#site-footer.footer-cols-3 {
  padding: 80px 48px 40px;
}
#site-footer.footer-cols-3 :is(.footer-grid, .divider, .footer-bottom) {
  max-width: 1380px;
  margin-left: auto;
  margin-right: auto;
  justify-content:center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
#site-footer.footer-cols-3 .footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr;
}
.footer-about-logo { 
  margin-bottom: 16px; 
  width: 200px;
}
.footer-about-logo img {
  height: auto;
}
.footer-about-desc {
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-social {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.footer-social:hover { color: var(--text); border-color: var(--text); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-newsletter p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-links p {
	font-size: 14px;
    transition: color .2s;
}
.footer-newsletter-form { display: flex; gap: 8px; }
.footer-newsletter-form .input { padding: 10px 0; }
.footer-bottom {
  display: flex;
/*   justify-content: space-between; */
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* Critic Spotlight */
.critic-spotlight {
  padding: 72px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.critic-spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.critic-spotlight-img {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
}
.critic-quote {
  font-family: var(--font-heading);
  font-size: 40px;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 16px;
}
.critic-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 600px;
}

/* ==============================================
   COLUMN STACK LAYOUT
   ============================================== */

/* Wrapper: 3 cột song song */
.col-stack-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

/* Mỗi cột */
.col-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header cột: accent bar trái + title */
.col-stack-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
}
.col-stack-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.col-stack-title {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  flex: 1;
}
.col-stack-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color .2s;
}
.col-stack-action:hover { color: var(--accent); }

/* Lead post: ảnh full-width + title bên dưới */
.col-stack-lead {
  display: block;
  margin-bottom: 12px;
}
.col-stack-lead-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.col-stack-lead-title {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.col-stack-lead:hover .col-stack-lead-title { color: var(--accent); }

/* Date + Author dưới title */
.col-stack-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  flex-wrap: wrap;
}
.col-stack-date {
  color: var(--text-dim);
}
.col-stack-author {
  font-weight: 500;
}

/* Danh sách bài còn lại */
.col-stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.col-stack-item {
  border-top: 1px solid var(--line);
}
.col-stack-item-link {
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  color: var(--text);
}
.col-stack-item-link:hover { color: var(--accent); }
.col-stack-item-title {
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
  margin-bottom: 4px;
}
.col-stack-item-link .col-stack-meta {
  font-size: 12px;
}
.col-stack-item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 680px) {
  .col-stack-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ==============================================
   MOBILE READING TOOLS (FAB + Modal)
   ============================================== */

/* FAB group — scroll-top (all screens on single) + reading-fab (mobile only) */
#fab-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
body.mobile-nav-open #fab-group {
  display: none;
}
#scroll-top-btn {
  display: grid;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  place-items: center;
  transition: opacity .25s, transform .2s, box-shadow .2s;
  opacity: 0;
  pointer-events: none;
}
#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
#scroll-top-btn:hover { transform: scale(1.06); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
#mobile-reading-fab {
  display: none;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  place-items: center;
  transition: transform .2s, box-shadow .2s;
}
#mobile-reading-fab:hover { transform: scale(1.06); box-shadow: 0 6px 24px rgba(0,0,0,.45); }

/* Modal backdrop */
#mobile-reading-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
}
#mobile-reading-modal.open {
  display: flex;
}

/* Modal panel */
.mobile-reading-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 20px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.mobile-reading-handle {
  width: 36px; height: 4px;
  background: var(--line-strong);
  border-radius: 2px;
  margin: 0 auto 4px;
}
.mobile-reading-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* TOC inside modal */
.mobile-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}
.mobile-toc-list li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.mobile-toc-list li a:hover,
.mobile-toc-list li.active a {
  background: var(--surface-2, var(--line));
  color: var(--text);
}

/* Font-size row inside modal */
.mobile-font-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-font-row .font-label {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}
.mobile-font-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  transition: background .15s;
}
.mobile-font-btn:hover { background: var(--line-strong); }
.mobile-font-btn.disabled { opacity: .3; pointer-events: none; }
#mobile-font-display {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

/* ==============================================
   RESPONSIVE
   ============================================== */

/* Tablet wide (901–1100px): 2-col — article + right col (TOC + sidebar), no share rail */
@media (max-width: 1100px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr 260px;
  }
  .single-body-grid {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }
  .single-share-rail { display: none; }
  .single-toc { display: block; }
  /* Sidebar hiển thị đầy đủ trong cột phải trên tablet */
  #sidebar { display: block; }
  #sidebar .sidebar-about { padding: 20px; }
  .cards-grid-top { grid-template-columns: repeat(2, 1fr); }
  .list-mini-grid  { grid-template-columns: repeat(2, 1fr); }
  #sidebar .popular-img { width: 78px; height: 60px; }
}

/* Tablet narrow (iPad Air/Mini ≤900px): full 1-col */
@media (max-width: 900px) {
  #mobile-nav {
    width: 100vw;
    max-width: 100vw;
    border-right: 0;
  }
  .single-body-grid { grid-template-columns: 1fr; }
  .single-toc { display: none; }
  #primary-nav { display: none; }
  .nav-subscribe-btn { display: none; }
  .af-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-body { grid-template-columns: 1fr; }
  .search-body { grid-template-columns: 1fr; }
  .search-filters { position: static; }
  .critic-spotlight-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  body.archive .content-sidebar-wrap #sidebar,
  body.category .content-sidebar-wrap #sidebar,
  body.tag .content-sidebar-wrap #sidebar {
    display: block;
    margin-top: 32px;
  }
}

@media (max-width: 1024px) {
    #nav-bar { padding: 6px 12px !important; }
    .cat-pills-inner { padding: 8px 14px; }
}
@media (max-width: 450px) {
    #nav-bar { padding: 5px 10px !important; }
}

@media (max-width: 680px) {
  #nav-bar { padding: 16px 20px; max-width: 100%; }
  .archive-header { padding: 32px 20px; }
  .archive-title { font-size: 44px; }
  .archive-desc { font-size: 15px; }
  .archive-toolbar { padding: 16px 20px; }
  .archive-featured { padding: 32px 20px; }
  .content-sidebar-wrap { padding: 28px 20px; }
  .section-head h2 { font-size: 26px; }
  .cat-pills-inner { padding: 14px 6px; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-top { grid-template-columns: 1fr; }
  .list-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 30px; }
  .hero-excerpt { font-size: 15px; }
  .single-wrap { padding: 32px 20px 0; }
  .single-title { font-size: 36px; }
  .single-excerpt { font-size: 17px; }
  .single-hero-img-wrap { padding: 0 20px 32px; }
  .single-body-grid { padding: 0 20px 80px; }
  #mobile-reading-fab { display: grid; }
}

@media (max-width: 1100px) {
  #mobile-reading-fab { display: grid; }
  .post-row { grid-template-columns: 100px 1fr; gap: 14px; }
  .post-row-excerpt { display: none; }
  .post-row .card-title { font-size: 16px !important; }
  .search-header { padding: 40px 20px 32px; }
  .search-title { font-size: 36px; }
  .search-body { padding: 32px 20px; }
  .search-result-item { grid-template-columns: 1fr; }
  .contact-header { padding: 40px 20px; }
  .contact-title { font-size: 48px; }
  .contact-body { padding: 40px 20px; }
  .not-found-404 { font-size: 100px; }
  .not-found-inner { padding: 60px 20px; }
  .term-header { padding: 32px 20px; }
  .term-title { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  #site-footer { padding: 40px 20px 24px; }
  #site-footer.footer-cols-3 { padding: 48px 20px 28px; }
  #site-footer.footer-cols-3 .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .related-section { padding: 40px 20px; }
  .critic-spotlight { padding: 40px 20px; }
  .contact-map { padding: 0 20px 40px; }
}
