/* ==========================================================================
   LoaBT.vn — Demo giao diện (e-magazine edition)
   Display: Archivo · Body: Be Vietnam Pro · Article prose: Lora
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #171613;
  --ink-soft: #45443f;
  --muted: #8a887f;
  --accent: #d9480f;
  --accent-dark: #b83c0a;
  --accent-soft: #fdf0e8;
  --line: #e9e6de;
  --dark: #171512;
  --dark-2: #262019;
  --green: #2f9e44;
  --green-soft: #ebfbee;
  --red: #e03131;
  --red-soft: #fff5f5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 22, 19, 0.04), 0 8px 24px rgba(23, 22, 19, 0.06);
  --shadow-lift: 0 2px 4px rgba(23, 22, 19, 0.06), 0 16px 40px rgba(23, 22, 19, 0.1);
  --font-display: "Archivo", -apple-system, sans-serif;
  --font-body: "Be Vietnam Pro", -apple-system, sans-serif;
  --font-serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .logo {
  font-family: var(--font-display);
}

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.container--wide { width: min(1400px, 100% - 2.5rem); margin-inline: auto; }

/* --------------------------------- Header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.site-footer .logo img { height: 40px; }
.logo span { color: var(--accent); }
.logo small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 2px;
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  overflow-x: auto;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--accent-soft); color: var(--accent); }

/* -------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 72, 15, 0.28);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(217, 72, 15, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

/* ============================ MAGAZINE FEATURE ============================ */
/* Full-width dark editorial hero used on homepage & brand pages             */

.mag-feature {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(217, 72, 15, 0.28), transparent 60%),
    linear-gradient(160deg, #1d1a15 0%, var(--dark) 55%, #221c15 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.mag-feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.mag-feature .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.35rem;
  margin-bottom: 1.5rem;
}

.mag-feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}

.mag-feature h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.mag-feature h1 em { font-style: normal; color: var(--accent); }

.mag-feature .lead {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: #c9c2b6;
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.mag-feature .hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.mag-feature .hero-trust {
  display: flex;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mag-feature .hero-trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.mag-feature .hero-trust span { font-size: 0.84rem; color: #9c948a; }

.hero-visual {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(150deg, #352e28 0%, #201c17 60%, #2a241d 100%);
  aspect-ratio: 4 / 4.4;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 220px at 50% 30%, rgba(217, 72, 15, 0.35), transparent 70%);
}
.hero-visual img { width: 56%; position: relative; filter: invert(1); }

.hero-visual .float-card {
  position: absolute;
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
.hero-visual .float-card small { color: var(--muted); font-weight: 500; display: block; }
.float-card--score { top: 9%; right: 7%; }
.float-card--score b { color: var(--accent); font-size: 1.15rem; }
.float-card--price { bottom: 8%; left: 7%; }

/* ============================ MAGAZINE ARTICLE ============================ */

.mag-head {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  width: min(880px, 100% - 2.5rem);
  margin-inline: auto;
}

.mag-head .kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}
.mag-head .kicker a { border-bottom: 1px solid transparent; }
.mag-head .kicker a:hover { border-color: var(--accent); }

.mag-head h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.mag-head .dek {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 auto 1.75rem;
}

.mag-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.mag-byline .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.mag-byline b { color: var(--ink); font-weight: 700; }

/* Full-bleed hero image */
.mag-hero-img {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(340px, 62vh, 640px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% 20%, rgba(217, 72, 15, 0.3), transparent 65%),
    linear-gradient(160deg, #2b2620, var(--dark) 70%);
}
.mag-hero-img img { width: min(260px, 30vw); filter: invert(1); opacity: 0.95; }
.mag-hero-img .img-caption {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}

/* Article prose */
.article { padding-bottom: 4rem; }

.article-body { padding-top: 2.5rem; }

.article-body p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1.35rem;
  color: #2e2d29;
}
.article-body p strong { color: var(--ink); font-weight: 600; }

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 3rem 0 1.1rem;
  line-height: 1.15;
}
.article-body h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 1rem;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.7rem;
}
.article-body ul, .article-body ol {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1.35rem 1.4rem;
  color: #2e2d29;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a:not(.btn) { color: var(--accent); font-weight: 600; }
.article-body a:not(.btn):hover { text-decoration: underline; }

/* Full-bleed figures inside articles */
.article-figure { margin: 2.5rem 0; }
.article-figure.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.article-figure > img,
.article-figure picture img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--line);
}
.article-figure .ph {
  height: clamp(300px, 55vh, 560px);
  display: grid;
  place-items: center;
}
.article-figure .ph img { width: min(190px, 24vw); }
.article-figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.7rem 1.5rem 0;
  text-align: center;
  font-style: italic;
}

.article-note {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.article-note strong { color: var(--ink); }

.knowledge-grid { margin-top: 0.5rem; }
.knowledge-grid .card-thumb {
  height: 180px;
  overflow: hidden;
}
.knowledge-grid .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  max-width: 44rem;
  margin: 3rem auto;
  padding: 0 1rem;
  position: relative;
}
.pull-quote::before, .pull-quote::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto;
}
.pull-quote::before { margin-bottom: 1.5rem; }
.pull-quote::after { margin-top: 1.5rem; }

/* ============================== SCORE SYSTEM ============================== */

.score-panel {
  background: linear-gradient(140deg, var(--dark-2), var(--dark));
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
  margin: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.25rem;
  align-items: center;
  box-shadow: var(--shadow-lift);
}

.score-overall { text-align: center; }
.score-overall .num {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.score-overall .num small { font-size: 1.4rem; color: #7d766c; font-weight: 700; }
.score-overall .label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b6afa4;
  margin-top: 0.6rem;
}
.score-overall .badge-verdict {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.score-rows { display: flex; flex-direction: column; gap: 0.85rem; }
.score-row {
  display: grid;
  grid-template-columns: 190px 1fr 44px;
  align-items: center;
  gap: 1rem;
}
.score-row .cat { font-size: 0.86rem; font-weight: 600; color: #d7d1c7; }
.score-row .cat small { color: #7d766c; font-weight: 500; margin-left: 0.3rem; }
.score-row .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.score-row .bar i {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, #e8590c, #f08c00);
}
.score-row .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  text-align: right;
}

.score-note {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: #7d766c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

/* ----------------------------- Verdict box ------------------------------- */

.verdict {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow);
}
.verdict .verdict-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.verdict p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0; }
.verdict p strong { color: var(--ink); }
.verdict-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.verdict-cta .price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.verdict-cta .price small { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.verdict-cta .btn { margin-left: auto; }

/* --------------------------------- Tables -------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.25rem 0 1.75rem;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
tbody tr:last-child td { border-bottom: none; }
td.win { color: var(--green); font-weight: 700; }
th.spec-label, td.spec-label { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ------------------------------- Pros / cons ------------------------------ */

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.25rem 0 1.75rem; }
.pros, .cons { border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.pros { background: var(--green-soft); border: 1px solid #c3e8cb; }
.cons { background: var(--red-soft); border: 1px solid #f5c8c8; }
.pros h4, .cons h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; margin-bottom: 0.7rem; }
.pros h4 { color: var(--green); }
.cons h4 { color: var(--red); }
.pros ul, .cons ul { list-style: none; margin: 0; }
.pros li, .cons li { font-size: 0.9rem; padding-left: 1.4rem; position: relative; margin-bottom: 0.45rem; color: var(--ink-soft); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* ----------------------------------- FAQ ---------------------------------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; font-weight: 500; color: var(--muted); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.25rem 1.1rem; font-size: 0.92rem; color: var(--ink-soft); }

/* ------------------------------ CTA District M ---------------------------- */

.dm-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(120deg, #221f1b, #33291f);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.dm-box .dm-text { flex: 1; min-width: 220px; }
.dm-box .dm-text b { font-size: 1.05rem; display: block; margin-bottom: 0.2rem; }
.dm-box .dm-text span { font-size: 0.87rem; color: #cfc8bd; }
.dm-box .btn--primary { box-shadow: none; }

/* -------------------------------- Toc ------------------------------------ */

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
}
.toc b { display: block; font-family: var(--font-display); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { margin-left: 1.2rem; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: var(--ink-soft); font-weight: 600; }
.toc a:hover { color: var(--accent); }

/* ------------------------------ Section chrome ---------------------------- */

.section { padding: 3.75rem 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 0.8rem;
}
.section-head p { color: var(--muted); margin-top: 0.45rem; max-width: 40rem; }
.section-head .more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding-bottom: 0.2rem;
}
.section-head .more:hover { text-decoration: underline; }

/* --------------------------------- Cards --------------------------------- */

.grid { display: grid; gap: 1.35rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.card-thumb {
  aspect-ratio: 16 / 10.5;
  display: grid;
  place-items: center;
  position: relative;
}
.card-thumb img { width: 34%; opacity: 0.92; }

.thumb-a { background: linear-gradient(140deg, #efe9df, #e3dbcd); }
.thumb-b { background: linear-gradient(140deg, #e5e9ef, #d4dbe6); }
.thumb-c { background: linear-gradient(140deg, #eee5e2, #e2d2cc); }
.thumb-d { background: linear-gradient(140deg, #e4ece6, #d2e0d6); }
.thumb-dark { background: linear-gradient(145deg, #2b2723, #171512); }
.thumb-dark img { filter: invert(1); opacity: 0.9; }

.card-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.card-badge--accent { background: var(--accent); }

.card-score {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  background: #fff;
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lift);
}

.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }

.card-meta {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-body h3 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}
.card-body h3 a:hover { color: var(--accent); }

.card-body p { font-size: 0.89rem; color: var(--ink-soft); flex: 1; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--muted);
}
.card-foot .tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.card-foot .tags span {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ------------------------------- Filter bar ------------------------------- */

.filter-bar { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.filter-group { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.filter-group .fl {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 88px;
}
.chip {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.result-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.result-count b { color: var(--ink); }

/* ------------------------------- Hub tiles ------------------------------- */

.hub-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: block;
}
.hub-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--accent); }

.hub-tile .tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.hub-tile h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.35rem; }
.hub-tile p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.hub-tile .tile-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hub-tile .tile-links span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.hub-tile .tile-cta { font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-top: 1rem; display: inline-block; }

/* ------------------------------ Breadcrumbs ------------------------------ */

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 1.1rem 0 0;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { margin: 0 0.4rem; color: var(--line); }
.breadcrumbs .current { color: var(--ink-soft); font-weight: 600; }

/* ------------------------------- Page hero ------------------------------- */

.page-hero { padding: 2.25rem 0 2.5rem; }
.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
  max-width: 48rem;
}
.page-hero .lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 46rem; }
.page-hero .page-meta { margin-top: 1rem; font-size: 0.84rem; color: var(--muted); display: flex; gap: 1.25rem; flex-wrap: wrap; }
.page-hero .page-meta b { color: var(--ink-soft); font-weight: 600; }

/* ------------------------------- Brand hero ------------------------------- */

.brand-hero {
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(217, 72, 15, 0.25), transparent 60%),
    linear-gradient(160deg, #1d1a15, var(--dark) 60%, #211c15);
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.brand-hero .kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}
.brand-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.brand-hero .lead {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: #c9c2b6;
  max-width: 44rem;
  line-height: 1.7;
}
.brand-hero .brand-stats {
  display: flex;
  gap: 2.25rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-hero .brand-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}
.brand-hero .brand-stats span { font-size: 0.83rem; color: #9c948a; }

/* ------------------------------- Newsletter ------------------------------ */

.newsletter {
  background: linear-gradient(120deg, #221f1b, #362a1e);
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.newsletter h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.newsletter p { color: #cfc8bd; font-size: 0.95rem; }
.newsletter form { display: flex; gap: 0.6rem; }
.newsletter input {
  flex: 1;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.newsletter input::placeholder { color: #a89f92; }

/* --------------------------------- Footer -------------------------------- */

.site-footer {
  background: #171512;
  color: #b6afa4;
  margin-top: 4rem;
  padding: 3.25rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer .logo { color: #fff; margin-bottom: 0.75rem; display: inline-block; }
.site-footer p { max-width: 26rem; font-size: 0.87rem; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #33302a;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #837c70;
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 960px) {
  .mag-feature-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 460px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 2.25rem 1.75rem; }
  .score-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .score-row { grid-template-columns: 130px 1fr 40px; }
}

@media (max-width: 620px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .mag-feature { padding: 3.25rem 0 3rem; }
  .mag-feature .hero-trust { flex-wrap: wrap; gap: 1.25rem; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 0.45rem 0.55rem; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .filter-group .fl { min-width: 100%; }
}

/* ========== review-first: ẩn tính năng cần nhiều data ========== */
/* Đổi SITE_MODE = "full" trong data.js để hiện lại toàn bộ          */

.mode-review-first [data-full-only],
.mode-review-first .score-panel,
.mode-review-first .card-score,
.mode-review-first .filter-bar,
.mode-review-first .float-card--score {
  display: none !important;
}

.mode-review-first .mag-feature-grid {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.mode-review-first .hero-visual {
  display: none;
}

.featured-review {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 0.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.featured-review:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.featured-review .fr-visual {
  background: linear-gradient(150deg, #2b2723, #171512);
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
}
.featured-review .fr-visual img {
  width: 38%;
  filter: invert(1);
}
.featured-review .fr-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-review .fr-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.featured-review h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.featured-review h2::before { display: none; }
.featured-review p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.featured-review .fr-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
  .featured-review { grid-template-columns: 1fr; }
  .featured-review .fr-visual { min-height: 220px; }
}

/* ===================== CINEMA LIGHT-LEAK BANNER ===================== */
/* 2.39:1 letterbox · warm leaks · 35mm grain · serif title            */

.cinema-banner {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

.cinema-banner__letterbox {
  position: relative;
  width: 100%;
  aspect-ratio: 2.39 / 1;
  min-height: 420px;
  max-height: 72vh;
  overflow: hidden;
}

.cinema-banner__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* Background plate */
.cinema-banner__bg {
  position: absolute;
  inset: 0;
  background-color: #1a0d08;
  background-size: cover;
  background-position: center;
  transition: filter 0.8s ease;
}

.cinema-banner[data-tone="warm"] .cinema-banner__bg {
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 80%, #3a1a10 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 70% 30%, #2a140c 0%, transparent 50%),
    linear-gradient(160deg, #1a0d08 0%, #2b120c 45%, #140a06 100%);
}
.cinema-banner[data-tone="forest"] .cinema-banner__bg {
  background-image:
    radial-gradient(ellipse 70% 55% at 30% 70%, #142018 0%, transparent 55%),
    linear-gradient(160deg, #0a1410 0%, #122018 50%, #08100c 100%);
}
.cinema-banner[data-tone="night"] .cinema-banner__bg {
  background-image:
    radial-gradient(ellipse 60% 50% at 60% 40%, #1a1218 0%, transparent 55%),
    linear-gradient(160deg, #0d0e1a 0%, #161018 50%, #0a0a12 100%);
}

.cinema-banner.has-image .cinema-banner__bg {
  filter: brightness(0.62) contrast(1.05) saturate(0.95);
}

.cinema-banner.has-image .cinema-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 8, 4, 0.72) 0%, rgba(20, 8, 4, 0.35) 42%, rgba(20, 8, 4, 0.15) 70%),
    linear-gradient(to top, rgba(20, 8, 4, 0.45) 0%, transparent 40%);
}

.cinema-banner.has-image .cinema-banner__copy {
  text-align: left;
  margin-right: auto;
  margin-left: 0;
  width: min(640px, 100%);
}

.cinema-banner.has-image .cinema-banner__subtitle {
  margin-left: 0;
  margin-right: 0;
}

.cinema-banner.has-image .cinema-banner__actions {
  justify-content: flex-start;
}

.cinema-banner.has-image .cinema-banner__stage {
  place-items: center start;
  padding-left: clamp(1.5rem, 6vw, 4.5rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 720px) {
  .cinema-banner.has-image .cinema-banner__copy {
    text-align: center;
    width: min(920px, 100%);
  }
  .cinema-banner.has-image .cinema-banner__actions {
    justify-content: center;
  }
  .cinema-banner.has-image .cinema-banner__stage {
    place-items: end center;
    padding-bottom: 2.5rem;
  }
  .cinema-banner.has-image .cinema-banner__bg::after {
    background:
      linear-gradient(to top, rgba(20, 8, 4, 0.82) 0%, rgba(20, 8, 4, 0.35) 45%, transparent 70%);
  }
}

/* Warm light leaks — no cool blue */
.cinema-banner__leaks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(255, 181, 71, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 70%, rgba(217, 119, 87, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 35% 30% at 70% 90%, rgba(255, 150, 100, 0.22) 0%, transparent 55%),
    linear-gradient(to top, rgba(217, 119, 87, 0.28) 0%, transparent 32%);
  mix-blend-mode: screen;
  animation: leak-drift 14s ease-in-out infinite alternate;
}

/* 35mm grain */
.cinema-banner__grain {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Film scratches */
.cinema-banner__scratches {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 12%, rgba(255,255,255,0.35) 12.15%, transparent 12.3%),
    linear-gradient(90deg, transparent 41%, rgba(255,255,255,0.2) 41.08%, transparent 41.2%),
    linear-gradient(90deg, transparent 78%, rgba(255,255,255,0.28) 78.1%, transparent 78.25%);
}

/* Sprocket holes on letterbox strips */
.cinema-banner::before,
.cinema-banner::after {
  content: "";
  display: block;
  height: clamp(28px, 4.5vw, 48px);
  background:
    #000
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 18px,
      rgba(245, 233, 214, 0.22) 18px,
      rgba(245, 233, 214, 0.22) 28px,
      transparent 28px,
      transparent 48px
    );
}

/* Copy */
.cinema-banner__copy {
  position: relative;
  z-index: 5;
  width: min(920px, 100%);
  text-align: center;
  color: #f5e9d6;
  animation: cinema-fade-in 0.9s ease both;
}

.cinema-banner.has-image .cinema-banner__copy {
  padding-left: 1.1rem;
}
.cinema-banner.has-image .cinema-banner__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  background: linear-gradient(180deg, #ffb347 0%, #d9480f 55%, transparent 100%);
  border-radius: 2px;
}

.cinema-banner__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.45rem, 1.4vw, 0.9rem);
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.cinema-banner:not(.has-image) .cinema-banner__title {
  align-items: center;
}

.cinema-banner__line {
  display: block;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 233, 214, 0.92);
  text-shadow: none;
  paint-order: stroke fill;
  position: relative;
  z-index: 1;
}

.cinema-banner__line--punch {
  font-size: clamp(2.9rem, 8vw, 5.8rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #ffb347;
  -webkit-text-stroke: 0;
  text-shadow:
    0 0 40px rgba(255, 179, 71, 0.35),
    0 4px 28px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 0;
  margin-top: 0;
  padding-bottom: 0.14em;
}

.cinema-banner.has-image .cinema-banner__line--punch {
  margin-left: 0.08em;
}

.cinema-banner__line--punch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.15em;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, #ffb347 0%, #d9480f 70%, transparent 100%);
  border-radius: 1px;
  transform: skewX(-12deg);
  opacity: 0.95;
}

.cinema-banner__subtitle {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.78;
  max-width: 34em;
  margin: 0 auto 1.75rem;
}

.cinema-banner__reel {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.cinema-banner__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.cinema-banner .btn--cinema {
  background: #f5e9d6;
  color: #1a0d08;
  box-shadow: none;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cinema-banner .btn--cinema:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: none;
}
.cinema-banner .btn--cinema-ghost {
  background: transparent;
  color: #f5e9d6;
  border: 1px solid rgba(245, 233, 214, 0.35);
  border-radius: 2px;
  box-shadow: none;
}
.cinema-banner .btn--cinema-ghost:hover {
  border-color: #f5e9d6;
  background: rgba(245, 233, 214, 0.08);
}

.cinema-banner__meta {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
}

@keyframes leak-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

@keyframes cinema-fade-in {
  from { opacity: 0; filter: brightness(0.35); transform: translateY(10px); }
  to   { opacity: 1; filter: brightness(1); transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-banner__leaks,
  .cinema-banner__copy {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .cinema-banner__letterbox {
    aspect-ratio: auto;
    min-height: 520px;
    max-height: none;
  }
  .cinema-banner.has-image .cinema-banner__copy::before {
    display: none;
  }
  .cinema-banner.has-image .cinema-banner__copy {
    padding-left: 0;
  }
  .cinema-banner__title {
    align-items: center;
  }
  .cinema-banner.has-image .cinema-banner__line--punch {
    margin-left: 0;
  }
  .cinema-banner__line {
    -webkit-text-stroke-width: 1.2px;
  }
  .cinema-banner__line--punch::after {
    height: 4px;
  }
}

/* Hide old mag-feature when cinema banner is used */
.mode-review-first .mag-feature { display: none; }


