* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a2e;
  background: #f7f8fa;
  line-height: 1.55;
}
a { color: #0b5cad; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #10243e; color: #fff;
}
.site-header .logo { color: #fff; font-size: 20px; }
.site-header .logo strong { color: #ffb703; }
.site-header nav a { color: #dbe7f5; margin-left: 16px; font-size: 15px; }
.site-header nav a:first-child { margin-left: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 16px 20px; }
h1 { font-size: 26px; line-height: 1.25; margin: 8px 0 12px; }
h2 { font-size: 20px; margin: 26px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 6px; color: #33475b; }
.lead { font-size: 16px; color: #33475b; }
.hint { color: #66788c; font-size: 14px; }

.card { background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 16px; margin: 16px 0; }
.picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.picker select {
  flex: 1 1 200px; padding: 10px; font-size: 16px; border: 1px solid #b9c7d8; border-radius: 8px; background: #fff; max-width: 100%;
}
.vs-badge { font-weight: 700; color: #b3540a; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.phone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 14px; }
.phone-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #dde4ec; border-radius: 14px; padding: 0; color: inherit; overflow: hidden;
}
.phone-card:hover { border-color: #0b5cad; text-decoration: none; }
.pc-media { display: flex; align-items: center; justify-content: center; height: 168px; padding: 14px; box-sizing: border-box; background: linear-gradient(180deg, #fbfcfe, #edf2f8); border-bottom: 1px solid #e6edf5; }
.pc-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pc-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 13px; flex: 1; }
.pc-name { font-weight: 700; font-size: 16.5px; color: #10243e; line-height: 1.3; }
.pc-sub { color: #66788c; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-specs { color: #44586e; font-size: 13.5px; }
.pc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; border-top: 1px solid #eef2f7; }
.pc-ant-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #8a9db1; }
.pc-ant { font-size: 17px; font-weight: 800; color: #0b5cad; }
@media (max-width: 640px) {
  .phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-media { height: 126px; padding: 10px; }
  .pc-body { padding: 10px 11px 11px; }
  .pc-name { font-size: 15px; }
  .pc-ant { font-size: 15.5px; }
}
.badge { background: #ffe1b3; color: #7a4a00; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-style: normal; font-weight: 600; vertical-align: middle; }

.link-list { list-style: none; padding: 0; margin: 8px 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid #e4eaf1; }
.link-list li:last-child { border-bottom: 0; }

.btn {
  display: inline-block; background: #0b5cad; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; margin: 4px 6px 4px 0;
}
.btn:hover { text-decoration: none; background: #094e92; }
.btn-buy { background: #e8590c; }
.btn-buy:hover { background: #cf4d08; }

.ad-slot {
  border: 2px dashed #b9c7d8; border-radius: 8px; color: #66788c;
  text-align: center; padding: 22px 10px; margin: 18px 0; background: #eef2f7; font-size: 14px;
}

.price-box {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 14px 16px;
}
.price-box .price { font-size: 24px; font-weight: 800; color: #b3540a; display: block; }
.price-src { color: #66788c; font-size: 13px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 16px; }
.table-wrap:has(.vs-table) { overflow-x: visible; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 15px; }
.spec-table th, .spec-table td,
.vs-table th, .vs-table td,
.rank-table th, .rank-table td {
  border: 1px solid #dde4ec; padding: 8px 10px; text-align: left; vertical-align: top;
}
.spec-table th { width: 38%; background: #f0f4f9; font-weight: 600; }
.vs-table thead th { background: #10243e; color: #fff; position: sticky; top: 0; z-index: 6; }
.vs-table tbody th { background: #f0f4f9; font-weight: 600; width: 26%; }
.vs-table td.win { background: #fef9e2; font-weight: 600; }
.vs-table tr.group-row th { background: #dbe7f5; }
.rank-table thead th { background: #10243e; color: #fff; }
.rank-table td.rank { font-weight: 800; text-align: center; }
.rank-table tr.top1 td { background: #fff3d6; }

.antutu-box { background: #10243e; color: #eaf2fb; border-radius: 12px; padding: 16px; margin: 22px 0; }
.antutu-box h2 { color: #fff; margin-top: 0; }
.antutu-box a { color: #ffd166; }
.antutu-nums { display: flex; flex-wrap: wrap; gap: 24px; margin: 10px 0; }
.big-num { font-size: 32px; font-weight: 800; display: block; line-height: 1.1; }
.big-num.accent { color: #ffd166; }
.num-label { font-size: 13px; color: #dce8f6; }

.verdict { background: #eafaf0; border: 1px solid #9fd8b4; border-radius: 12px; padding: 6px 16px 12px; margin: 14px 0; }
.verdict h2 { margin-top: 12px; }
.verdict .winner { background: #fff; border-left: 4px solid #1d9d57; padding: 10px 12px; border-radius: 0 8px 8px 0; }

.vs-sticky {
  display: flex; align-items: stretch; gap: 8px;
  background: linear-gradient(135deg, #eaf2fd 0%, #cfdff5 100%); color: #10243e; border: 1px solid #c3d5ee; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0;
  box-shadow: 0 2px 6px rgba(16,36,62,.08);
}
.vs-sticky .vs-col { flex: 1; min-width: 0; text-align: center; }
.vs-sticky .vs-col a { color: #10243e; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-sticky .vs-col span { font-size: 14px; color: #5a7186; }
.vs-sticky .vs-mid { align-self: center; font-weight: 800; color: #f26522; }
.vs-links { margin-top: 10px; }

.phone-hero { background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 12px; margin: 10px 0 14px; text-align: center; }
.phone-hero img { width: 100%; max-width: 300px; height: auto; max-height: 260px; object-fit: contain; }
.vs-sticky .vs-img { display: block; width: auto; max-width: 84px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; margin: 0 auto 5px; box-shadow: 0 1px 4px rgba(16,36,62,.15); }
.rank-img { width: 64px; height: 44px; object-fit: contain; vertical-align: middle; margin-right: 8px; }

.perf-wrap { margin: 34px 0 4px; padding-bottom: 24px; }
.perf-track { position: relative; height: 36px; background: #e8edf3; border-radius: 8px; }
.perf-track.slim { height: 30px; flex: 1; }
.perf-fill { position: absolute; left: 0; top: 0; height: 100%; min-width: 6px; background: linear-gradient(90deg, #00c853, #009624); border-radius: 8px; }
.vs-perf-score { flex: 0 0 118px; text-align: right; font-weight: 800; color: #6a1b9a; font-size: 15px; }
.perf-diff { font-style: normal; font-size: 12px; color: #37474f; margin-left: 2px; }
.perf-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #78909c; z-index: 2; }
.perf-mark span { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: #a9cff7; white-space: nowrap; }
.perf-mark.alt span { bottom: auto; top: calc(100% + 5px); }
.perf-mark.edge-l span { left: 0; transform: none; }
.perf-mark.edge-r span { left: auto; right: 0; transform: none; }

.vs-perf { margin: 16px 0 4px; }
.vs-perf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vs-perf-name { flex: 0 0 34%; font-weight: 700; font-size: 14px; }
.vs-perf .perf-note { margin-top: 4px; }

.site-footer { max-width: 1140px; margin: 0 auto; padding: 18px 16px 30px; color: #66788c; font-size: 13px; }

@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .big-num { font-size: 26px; }
  table { font-size: 14px; }
  .vs-table tbody th { width: 30%; }
  .vs-sticky .vs-img { max-width: 62px; height: 42px; }
  .phone-hero img { max-width: 230px; max-height: 200px; }
}

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.quick-card { background: #f2f6fb; border: 1px solid #dde5ee; border-radius: 10px; padding: 10px; }
.quick-card span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #66788c; margin-bottom: 4px; }
.quick-card strong { font-size: 13.5px; line-height: 1.35; display: block; }
.meta-block { margin: 10px 0 2px; }
.meta-label { font-weight: 700; font-size: 14px; margin-right: 4px; }
.chip { display: inline-block; background: #eef3f9; border: 1px solid #d3dee9; border-radius: 999px; padding: 3px 10px; font-size: 13px; margin: 2px 2px 2px 0; }
.meta-note { font-size: 12.5px; color: #66788c; margin: 4px 0 0; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq-item { border-bottom: 1px solid #e3eaf1; padding: 8px 0; }
.faq-item h3 { margin: 4px 0; font-size: 15.5px; }
.faq-item p { margin: 2px 0 6px; }
.data-footer { margin-top: 26px; padding-top: 12px; border-top: 1px solid #dde5ee; font-size: 12.5px; color: #66788c; }
@media (max-width: 640px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }

.product-head { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; margin-top: 6px; }
.ph-media img { width: 100%; max-width: 340px; max-height: 340px; object-fit: contain; display: block; margin: 0 auto; }
.ph-info h1 { margin-top: 0; }
.ph-info .quick-grid { grid-template-columns: repeat(2, 1fr); }
.swatches { display: inline; }
.swatch { display: inline-flex; align-items: center; background: #fff; border: 1px solid #d3dee9; border-radius: 999px; padding: 4px 11px 4px 5px; margin: 2px 2px 2px 0; font-size: 13px; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #aeb9c4; display: inline-block; margin-right: 6px; flex: 0 0 auto; }
@media (max-width: 760px) { .product-head { grid-template-columns: 1fr; } .ph-media img { max-width: 250px; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.sidebar { min-width: 0; }
.side-sticky { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.side-box { background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 12px; }
.side-banner { border: 2px dashed #b9c7d8; color: #66788c; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 250px; font-size: 13px; }
.side-banner.tall { min-height: 480px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .side-sticky { position: static; } .side-banner.tall { min-height: 250px; } }

.tab-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; flex-wrap: wrap; background: #f7f8fa; border-bottom: 2px solid #dde4ec; padding: 0 2px; margin-bottom: 14px; }
.tab-nav a { padding: 9px 12px; font-size: 14.5px; font-weight: 600; color: #1b74c9; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-nav a:hover { color: #0b5cad; text-decoration: none; }
.tab-nav a.active { color: #0b5cad; font-weight: 700; border-bottom-color: #f26522; }
.search-drop { margin-top: 10px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(6,24,48,.35); text-align: left; }
.sd-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 16px; border-bottom: 1px solid #eef2f7; }
.sd-item:last-child { border-bottom: 0; }
.sd-item:hover { background: #f0f6fe; text-decoration: none; }
.sd-name { font-weight: 700; color: #10243e; font-size: 15.5px; }
.sd-meta { color: #66788c; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-nav a.tab-logo { display: flex; align-items: center; align-self: center; background: #10243e; border-radius: 9px; padding: 5px 8px; margin: 4px 8px 3px 0; border-bottom: 0; box-shadow: 0 2px 6px rgba(16,36,62,.35); }
.tab-nav a.tab-logo:hover { background: #1a3a5f; }
.tab-nav a.tab-logo img { height: 24px; width: 24px; object-fit: contain; display: block; }
#thong-so, #hieu-nang, #so-sanh, #chi-tiet, #faq { scroll-margin-top: 64px; }
.spec-table td.no-data { color: #93a5b8; font-style: italic; }
.sub-scores { margin: 14px 0 4px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; }
.sub-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.sub-name { flex: 0 0 74px; font-size: 13px; color: #dce8f6; }
.sub-track { flex: 1; height: 12px; background: rgba(255,255,255,.14); border-radius: 6px; position: relative; }
.sub-fill { position: absolute; left: 0; top: 0; height: 100%; background: #ffd166; border-radius: 6px; }
.sub-val { flex: 0 0 84px; text-align: right; font-weight: 700; font-size: 13.5px; }
.meta-note.light { color: #b9c6d4; }

/* --- Trang tri / do tuong phan (ra soat 24/11) --- */
.tab-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: 10px; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav a { font-size: 13.5px; white-space: nowrap; }
.tab-nav a:hover { color: #0b5cad; }
#so-sanh { background: #e8f0fa; border: 1px solid #c3d5ec; border-radius: 12px; padding: 6px 16px 14px; margin-top: 22px; }
#so-sanh .link-list li { background: #fff; border: 1px solid #c9d9ee; border-radius: 10px; padding: 10px 14px; margin: 8px 0; box-shadow: 0 1px 3px rgba(16,36,62,.08); }
#so-sanh .link-list li a { font-weight: 600; display: block; }
#so-sanh .link-list li a::after { content: " →"; color: #b3540a; }
.quick-card { background: #edf3fa; border-color: #c3d2e4; }
.chip { background: #e8f0f8; border-color: #bccfe2; }
.faq-item { background: #fff; border: 1px solid #dde4ec; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
#thong-so h3 { border-left: 4px solid #0b5cad; padding-left: 9px; color: #10243e; }
.data-footer { border-top: 2px solid #d5e0ec; }

/* --- Trang tri trang so sanh --- */
.vs-perf { background: #e8f0fa; border: 1px solid #c3d5ec; border-radius: 12px; padding: 6px 16px 12px; }
.vs-perf .perf-track { background: #fff; }
.vs-table { box-shadow: 0 1px 4px rgba(16,36,62,.08); }
.vs-table tr.group-row th { background: #bcd3ee; color: #10243e; font-size: 15px; }

/* --- Fix tran ngang tren di dong (do that: trang rong 481px tren man 390px) --- */
.layout > article, .layout > .sidebar { min-width: 0; }
.tab-nav { max-width: 100%; }
.ph-info .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-head, .ph-info, .quick-grid, .table-wrap { min-width: 0; }

/* --- Canh trai header cung cot voi noi dung + thanh tab gon hon --- */
.site-header { display: block; padding: 0; }
.header-inner { max-width: 1140px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.site-footer { padding-left: 20px; padding-right: 20px; }
.tab-nav { margin-top: 6px; }
.diff-toggle { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #c3d2e4; border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 600; color: #10243e; cursor: pointer; margin: 4px 0 8px; }
.diff-toggle input { width: 16px; height: 16px; accent-color: #0b5cad; }
.top-list { list-style: none; counter-reset: tl; margin: 0 0 26px; padding: 0; background: #fff; border: 1px solid #d7e0ec; border-radius: 12px; overflow: hidden; }
.top-list li { counter-increment: tl; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #edf1f7; }
.top-list li:last-child { border-bottom: none; }
.top-list li::before { content: counter(tl); flex: 0 0 26px; height: 26px; border-radius: 50%; background: #eef3fa; color: #0b5cad; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; }
.top-list li:first-child::before { background: #f26522; color: #fff; }
.top-list a { color: #10243e; font-weight: 600; text-decoration: none; }
.top-list a:hover { color: #0b5cad; }
.top-list .tl-val { margin-left: auto; color: #44536a; font-size: 14px; white-space: nowrap; }
.key-specs { margin: 6px 0 4px; }
.ks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ks-card { background: #fff; border: 1px solid #d7e0ec; border-radius: 12px; padding: 12px 14px; }
.ks-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ks-cat { font-weight: 700; color: #10243e; font-size: 15px; }
.ks-line { margin: 0; color: #44536a; font-size: 13.5px; line-height: 1.45; }
.grade { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.grade.g5 { background: #e2f4e5; color: #177245; }
.grade.g4 { background: #e3eefb; color: #0b5cad; }
.grade.g3 { background: #fdf3d7; color: #8a6d1a; }
.grade.g2 { background: #fdeadb; color: #b3541e; }
.grade.g1 { background: #eceff3; color: #5b6a7d; }
h3 .grade { vertical-align: 2px; margin-left: 6px; }
.rank-list { background: #fff; border: 1px solid #d7e0ec; border-radius: 12px; padding: 10px 14px; margin: 10px 0 6px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; }
.rank-row.me { background: #fff4ec; outline: 1px solid #f5c9a8; }
.rank-name { flex: 0 0 218px; color: #10243e; font-weight: 600; font-size: 14px; text-decoration: none; }
.rank-name em { color: #f26522; font-style: normal; font-weight: 700; }
.rank-track { flex: 1; height: 12px; background: #edf1f7; border-radius: 999px; overflow: hidden; }
.rank-fill { height: 100%; background: #0b5cad; border-radius: 999px; }
.rank-fill.bat { background: #2e9e5b; }
.rank-row.me .rank-fill { background: #f26522; }
.rank-row.me .rank-fill.bat { background: #f26522; }
.rank-val { flex: 0 0 92px; text-align: right; font-size: 13.5px; color: #44536a; font-variant-numeric: tabular-nums; }
.ctx-h { margin: 18px 0 4px; }
@media (max-width: 640px) {
  .rank-row { flex-wrap: wrap; row-gap: 4px; }
  .rank-name { flex: 0 1 auto; font-size: 13.5px; }
  .rank-val { flex: 0 0 auto; font-size: 13px; margin-left: auto; }
  .rank-track { flex: 1 1 100%; order: 3; }
}
.rank-list .rank-name { color: #10243e; }
.antutu-box .ctx-h { color: #fff; }
.hero { background: linear-gradient(135deg, #10243e, #0b5cad); border-radius: 16px; padding: 28px 26px; margin-bottom: 22px; color: #fff; }
.hero h1 { color: #fff; margin: 0 0 8px; }
.hero .lead { color: #cfe0f2; margin: 0 0 16px; }
.hero-search { display: flex; gap: 10px; max-width: 640px; }
.hero-search input { flex: 1; min-width: 0; padding: 13px 16px; border: none; border-radius: 10px; font-size: 16px; }
.hero-search button { background: #f26522; color: #fff; border: none; border-radius: 10px; padding: 13px 22px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hero .hint { color: #ffd9a8; margin: 10px 0 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.fchip { background: #fff; border: 1.5px solid #c3d2e4; color: #10243e; border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600; cursor: pointer; }
.fchip:hover { border-color: #0b5cad; color: #0b5cad; }
.fchip.on { background: #0b5cad; border-color: #0b5cad; color: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.vs-card { background: #fff; border: 1px solid #d7e0ec; border-radius: 12px; padding: 14px; text-decoration: none; display: block; }
.vs-card:hover { border-color: #0b5cad; }
.vs-imgs { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.vs-imgs img { height: 92px; width: auto; max-width: 40%; object-fit: contain; }
.vs-dot { background: #f26522; color: #fff; font-style: normal; font-weight: 800; font-size: 12px; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.vs-names { display: block; text-align: center; color: #10243e; font-weight: 700; font-size: 14.5px; }
.vs-names i { color: #f26522; font-style: normal; }
@media (max-width: 640px) { .hero { padding: 20px 16px; } .hero-search button { padding: 13px 14px; } }
/* Chuan hoa khung anh san pham: moi anh nam trong 1 khung ti le co dinh, co dem trong */
img { max-width: 100%; }
.phone-card { overflow: hidden; }
.vs-card { overflow: hidden; }
.vs-imgs img { max-width: 42%; }
.ph-media { overflow: hidden; }
/* Hieu ung bong nhe (mau thu o trang chu) */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0d2038 0%, #0b5cad 70%, #1273c9 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 18% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 60%); pointer-events: none; }
.hero > * { position: relative; }
.hero-search button, .btn { background: linear-gradient(180deg, #ff8a3d, #f26522 55%, #e04e12); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.12), 0 4px 10px rgba(242,101,34,.35); }
.hero-search button:hover, .btn:hover { filter: brightness(1.06); }
.phone-card { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.phone-card::after { content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -80%; background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); transition: left .55s ease; pointer-events: none; }
.phone-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16,36,62,.14); }
.phone-card:hover::after { left: 130%; }
.fchip { background: linear-gradient(180deg, #ffffff, #eef3fa); box-shadow: inset 0 1px 0 #fff; }
.fchip.on { background: linear-gradient(180deg, #2b74c9, #0b5cad); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
/* Sang vien tu chay, lech pha tung the so sanh */
@keyframes vsGlow {
  0%, 18%, 100% { box-shadow: 0 0 0 0 rgba(242,101,34,0); border-color: #d7e0ec; }
  9% { box-shadow: 0 0 0 2px rgba(242,101,34,.55), 0 0 24px rgba(242,101,34,.45); border-color: #f26522; }
}
.vs-card { animation: vsGlow 7s ease-in-out infinite; }
.vs-grid .vs-card:nth-child(2) { animation-delay: 2.3s; }
.vs-grid .vs-card:nth-child(3) { animation-delay: 4.6s; }
.vs-grid .vs-card:nth-child(4) { animation-delay: 1.2s; }
.vs-grid .vs-card:nth-child(5) { animation-delay: 3.5s; }
.vs-grid .vs-card:nth-child(6) { animation-delay: 5.8s; }
@media (prefers-reduced-motion: reduce) { .vs-card { animation: none; } }
.ph-sub { color: #5a6b80; font-size: 14.5px; margin: 2px 0 10px; }
/* Dong ghi chu / caption: in nghieng, nho hon 1 co chu */
.meta-note { font-style: italic; font-size: 13.5px; color: #66788c; }
.data-footer { font-style: italic; }
.hint { font-style: italic; }
/* The thong so noi bat kieu moi: so lon + nhan mo ta */
.ks-top { display: flex; align-items: center; gap: 8px; }
.ks-icon { width: 20px; height: 20px; color: #0b5cad; flex: none; }
.ks-big { font-size: 25px; font-weight: 800; color: #10243e; margin: 9px 0 3px; letter-spacing: -.01em; }
.ks-tag { display: inline-block; margin-top: 9px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.ks-tag.good { background: #e2f4e5; color: #177245; }
.ks-tag.warn { background: #fdeeda; color: #b3541e; }
.ks-top { justify-content: flex-start; }
/* Thu vien anh san pham */
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gal-thumb { width: 62px; height: 62px; padding: 4px; border: 2px solid #dde4ec; border-radius: 9px; background: #fff; cursor: pointer; }
.gal-thumb.on { border-color: #f26522; }
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
#galMain { width: 100%; height: 340px; object-fit: contain; }
@media (max-width: 760px) { #galMain { height: 280px; } }
/* Tab nav tren mobile: tran vien, 5 tab vua man hinh, khong cuon ngang */
@media (max-width: 760px) {
  .tab-nav { width: calc(100% + 40px); max-width: none; margin-left: -20px; margin-right: -20px; padding: 0 10px; overflow-x: visible; }
  .tab-nav a { flex: 1 1 0; min-width: 0; text-align: center; padding: 8px 2px; }
  .tab-nav a.tab-logo { flex: 0 0 auto; padding: 4px 7px; margin: 4px 6px 3px 0; }
  .tab-nav a.tab-logo img { height: 22px; width: 22px; }
}
/* San vuot anh san pham */
.gal-stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-stage::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.gal-slide img { width: 100%; height: 340px; object-fit: contain; display: block; }
@media (max-width: 760px) { .gal-slide img { height: 280px; } }
.big-num sup { font-size: .42em; font-weight: 700; }
/* Hang anh nho: 1 hang duy nhat, truot ngang, khong xuong dong */
.gal-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumb { flex: 0 0 auto; width: 54px; height: 54px; }
@media (max-width: 760px) { .gal-thumb { width: 48px; height: 48px; } }
/* Luoi thuong hieu + kham pha chipset (trang chu) */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.brand-tile { background: #fff; border: 1px solid #d7e0ec; border-radius: 12px; padding: 16px 18px; text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.brand-tile:hover { border-color: #f26522; transform: translateY(-2px); }
.brand-tile .b-name { display: block; font-size: 19px; font-weight: 800; color: #10243e; }
.brand-tile .b-count { color: #66788c; font-size: 13.5px; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.chip-tile { display: block; background: #fff; border: 1px solid #d7e0ec; border-radius: 12px; padding: 14px 16px; text-decoration: none; transition: border-color .15s, transform .15s; }
.chip-tile:hover { border-color: #f26522; transform: translateY(-2px); text-decoration: none; }
.chip-tile .c-maker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0b5cad; }
.chip-tile .c-name { display: block; font-size: 17px; font-weight: 800; color: #10243e; margin: 3px 0; }
.chip-tile .c-phone { color: #66788c; font-size: 13.5px; }
.brand-tile { display: flex; align-items: center; min-height: 72px; }
.brand-tile img { height: 30px; max-width: 135px; object-fit: contain; display: block; }
.art-fig { margin: 12px 0 4px; }
.art-fig img { width: 100%; max-height: 400px; object-fit: contain; background: #fff; border: 1px solid #e2e8f2; border-radius: 10px; display: block; }
.art-fig figcaption { margin-top: 6px; }

/* FAQ accordion */
.faq-panel { background: linear-gradient(180deg, #eaf1fb, #e1ebfa); border: 1px solid #d3e1f4; border-radius: 14px; padding: 12px 14px 4px; }
.faq-item { padding: 0; margin: 0 0 10px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.faq-item:hover { border-color: #b9cfec; box-shadow: 0 3px 10px rgba(16,60,110,.08); }
.faq-item summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.q-badge { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #1668b8, #0b5cad); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.faq-item h3.q-text { margin: 0; flex: 1; font-size: 15.5px; color: #14406e; }
.q-chev { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid #0b5cad; border-bottom: 2px solid #0b5cad; transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.faq-item[open ] .q-chev { transform: rotate(225deg); }
.faq-item[open ] { border-color: #b9cfec; }
.faq-item p { margin: 0; padding: 10px 14px 12px 48px; border-top: 1px solid #eef3f9; }

/* FAQ v2: bo huy hieu ?, mui ten dung ky tu that, cau hoi mau cam dam, tra loi in nghieng */
.faq-item summary { gap: 8px; }
.faq-item h3.q-text { color: #c2510a; }
.q-chev { border: 0; width: auto; height: auto; margin: 0; font-size: 13px; line-height: 1; color: #7d93ad; transform: none; }
.faq-item[open ] .q-chev { transform: rotate(180deg); }
.faq-item p { padding-left: 14px; font-style: italic; }

/* FAQ v3: tinh, khong so xuong, cau hoi xanh cua web, tra loi in nghieng */
.faq-item { padding: 12px 14px; }
.faq-item h3.q-text { color: #14406e; margin: 0 0 4px; }
.faq-item p { border-top: 0; padding: 0; font-style: italic; }

/* ===== New page types (sitemap build) ===== */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.info-tile { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 14px 16px; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.info-tile:hover { border-color: #b9cfec; box-shadow: 0 4px 14px rgba(16,60,110,.10); }
.it-name { font-weight: 700; color: #10243e; font-size: 16px; }
.it-big { font-size: 24px; font-weight: 800; color: #0b5cad; }
.it-sub { color: #66788c; font-size: 13.5px; }
.hub-head { display: flex; align-items: center; gap: 14px; }
.hub-logo { height: 34px; max-width: 150px; object-fit: contain; }
.spec-panel { background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 6px 16px; margin: 12px 0; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #eef3f9; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: #66788c; }
.brand-tile.tile-text { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-decoration: none; }
.finder-box { background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.finder-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fg-label { font-weight: 700; color: #10243e; min-width: 190px; }
.fg-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fg-opts label { cursor: pointer; }
.finder-count { font-weight: 700; color: #0b5cad; margin: 14px 0 4px; }
.fc-pick { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; background: #fff; border: 1px solid #dde4ec; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.fc-pick select { font: inherit; padding: 7px 10px; border: 1px solid #c4d2e2; border-radius: 8px; margin-left: 6px; }
.fc-diff { cursor: pointer; }
.prose { line-height: 1.65; }
.prose h2 { margin-top: 26px; }
.prose a { color: #0b5cad; }
.prose ul { padding-left: 22px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: #44607f; }

/* Top 100 AnTuTu table */
.top100-table { min-width: 600px; }
.top100-table .meta-note { font-size: 12px; }

/* Floating home / back-to-top buttons — appear only after scrolling down */
.float-nav { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.float-nav.show { opacity: 1; pointer-events: auto; transform: none; }
.float-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #10243e; border: 1px solid #dde4ec; box-shadow: 0 2px 8px rgba(16,36,62,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.float-btn:hover { background: #eef4fb; color: #0b5cad; }
@media (prefers-reduced-motion: reduce) { .float-nav { transition: none; } }

/* Selectable option buttons (colour / variant) on phone pages */
.opt-btn { font: inherit; cursor: pointer; }
.opt-btn:hover { border-color: #0b5cad; }
.opt-btn[aria-pressed="true"] { background: #d9e9fb; border-color: #0b5cad; color: #0b5cad; font-weight: 700; }
.opt-btn[aria-pressed="true"] i { box-shadow: 0 0 0 2px #d9e9fb, 0 0 0 3px #0b5cad; }

/* Android / iPhone tabs on the AnTuTu ranking page */
.os-tabs { display: inline-flex; gap: 2px; background: #e8edf3; border-radius: 10px; padding: 4px; margin: 4px 0 14px; }
.os-tab { font: inherit; font-weight: 600; border: 0; background: transparent; color: #44607f; padding: 7px 16px; border-radius: 8px; cursor: pointer; }
.os-tab.on { background: #fff; color: #10243e; box-shadow: 0 1px 4px rgba(16, 36, 62, .18); }

/* Logo image (PhoneView) */
.site-header .logo img { height: 38px; width: auto; display: block; }
@media (max-width: 640px) { .site-header .logo img { height: 32px; } }
/* Logo header: hào quang cam + vệt sáng quét định kỳ (cùng ngôn ngữ hiệu ứng với thẻ máy) */
.site-header .logo { position: relative; display: inline-flex; overflow: hidden; border-radius: 8px; filter: drop-shadow(0 0 9px rgba(242,101,34,.5)) drop-shadow(0 2px 5px rgba(0,0,0,.3)); }
.site-header .logo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -80%; background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); animation: logoShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes logoShine { 0%, 55% { left: -80%; } 90%, 100% { left: 135%; } }
@media (prefers-reduced-motion: reduce) { .site-header .logo::after { animation: none; } }
/* Mobile: logo canh giữa trang, menu canh giữa ngay bên dưới */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: center; gap: 10px; }
  .site-header .logo img { height: 36px; }
  .site-header nav { justify-content: center; }
  .site-header nav a { margin-left: 0; }
}
