/* ============================================================
   AEON BETA — theme sáng theo brand aeonbeta.com.vn
   Nền trắng · typo display đen đậm (Anton) · banner màu họa tiết
   mũi tên · footer đen với chữ AEON BETA khổng lồ
   ============================================================ */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --gray: #6b6b6b;
  --gray2: #9a9a9a;
  --line: #e8e8e8;
  --chip: #f1f1f1;
  --pink: #ff3ea5;
  --purple: #8b7cf7;
  --cyan: #6fe8dc;
  --green: #7bf0a5;
  --green2: #22c55e;
  --orange: #ffb648;
  --orange2: #ff8c1a;
  --red: #f87b7b;
  --radius: 14px;
  --display: 'Anton', 'Archivo Black', sans-serif;
  --panel2: #f1f1f1; /* nền item sidebar đang chọn (markup dùng var này) */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.af-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===================== NAV ===================== */
.af-nav {
  position: sticky; top: 0; z-index: 100; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.af-nav-in {
  width: 100%; padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 22px;
}
.af-menu { display: flex; gap: 26px; }
.af-menu a { font-size: 15px; font-weight: 500; color: var(--ink); }
.af-menu a:hover, .af-menu a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.af-logo {
  font-family: var(--display); font-size: 27px; letter-spacing: 1px;
  text-transform: uppercase; transform: rotate(-2deg); white-space: nowrap;
  line-height: 1;
}
.af-logo:hover { transform: rotate(2deg); }
.af-navright { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.af-lang { font-size: 14px; font-weight: 600; }
.af-lang span { color: var(--gray2); font-weight: 400; }

/* ---- Ô tìm kiếm trên nav ---- */
.gp-hsearch { position: relative; flex: 0 1 300px; min-width: 130px; display: flex; align-items: center; }
.gp-search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 13px; }
.gp-search-inp {
  width: 100%; height: 38px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink); font-size: 13.5px; font-family: inherit;
  padding: 0 14px 0 34px; outline: none; -webkit-appearance: none; appearance: none;
}
.gp-search-inp::-webkit-search-cancel-button, .gp-search-inp::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.gp-search-inp::placeholder { color: var(--gray2); }
.gp-search-inp:focus { box-shadow: 3px 3px 0 var(--ink); }
.gp-search-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(440px, calc(100vw - 32px));
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink); padding: 14px; z-index: 300;
  max-height: min(72vh, 560px); overflow-y: auto;
}
.gp-search-hd {
  font-family: var(--display); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); margin: 2px 2px 11px;
}
.gp-search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.gp-search-card {
  position: relative; display: flex; align-items: flex-end; min-height: 72px; padding: 10px 12px;
  border-radius: 12px; background: linear-gradient(140deg, var(--g1), var(--g2));
  overflow: hidden; transition: transform .14s;
}
.gp-search-card:hover { transform: translateY(-2px) rotate(-1deg); }
.gp-search-card-nm { position: relative; z-index: 1; font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.gp-search-card-em { position: absolute; top: 8px; right: 10px; font-size: 26px; line-height: 1; }
.gp-search-empty { text-align: center; color: var(--gray); font-size: 13px; padding: 22px 0 16px; }
.gp-sr-rows { display: flex; flex-direction: column; gap: 2px; }
.gp-sr-row { display: flex; align-items: center; gap: 11px; padding: 8px 9px; border-radius: 10px; transition: background .12s; }
.gp-sr-row:hover { background: var(--chip); }
.gp-sr-emoji { width: 42px; height: 42px; padding: 6px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; flex: none; background: var(--chip); overflow: hidden; }
.gp-sr-emoji img { width: 100%; height: 100%; object-fit: contain; }
.gp-sr-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gp-sr-nm { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-sr-cat { font-size: 11.5px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===================== LAYOUT SIDEBAR (cấu trúc gamephase, màu sáng) ===================== */
.gp-side-toggle {
  flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: box-shadow .12s;
}
.gp-side-toggle:hover { box-shadow: 3px 3px 0 var(--ink); }
.gp-side-toggle:active { transform: scale(.93); }
.gp-side-toggle svg { display: block; }
.gp-side-toggle .ic-show { display: none; }
html.gp-side-off .gp-side-toggle .ic-hide { display: none; }
html.gp-side-off .gp-side-toggle .ic-show { display: block; }

.gp-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 64px); }
.gp-layout.two { grid-template-columns: 260px 1fr; }
html.gp-side-off .gp-side { display: none; }
html.gp-side-off .gp-layout, html.gp-side-off .gp-layout.two { grid-template-columns: 1fr; }
.gp-main { min-width: 0; padding: 0 0 40px; }
.gp-main .af-container { max-width: 1180px; }

.gp-side {
  border-right: 1px solid var(--line); padding: 20px 16px;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
  background: var(--paper);
}
.gp-navlist { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.gp-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-family: var(--display); font-size: 14px; font-weight: 400; letter-spacing: .3px;
  text-transform: uppercase; color: #333;
}
.gp-nav-item:hover { background: var(--chip); }
.gp-nav-item .ic { font-size: 15px; }
.gp-cats { margin: 6px 0 16px; }
.gp-h {
  font-family: var(--display); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray2); margin: 0 4px 10px; display: flex; align-items: center; gap: 6px;
}
.gp-cat { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; }
.gp-cat:hover { background: var(--chip); }
.gp-cat .ico {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  display: grid; place-items: center; flex: none; overflow: hidden; font-size: 14px;
}
.gp-cat .nm {
  font-family: var(--display); font-size: 13px; font-weight: 400; letter-spacing: .25px;
  text-transform: uppercase; flex: 1; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.gp-cat .ct { font-size: 11.5px; color: var(--gray2); font-weight: 700; }
.gp-sidefoot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; }
.gp-contact {
  background: var(--ink); color: #fff !important; border-radius: 999px; padding: 10px;
  font-weight: 700; font-size: 13.5px; transition: box-shadow .12s;
}
.gp-contact:hover { box-shadow: 3px 3px 0 var(--pink); }
.gp-copy { font-size: 11.5px; color: var(--gray2); text-align: center; line-height: 1.5; margin-top: 14px; }

/* banner nằm trong gp-main: bo góc + chừa lề */
.gp-main .af-banner { border-radius: 18px; margin-left: 22px; margin-right: 22px; }

@media (max-width: 860px) {
  .gp-side { display: none; }
  .gp-side-toggle { display: none; }
  .gp-layout, .gp-layout.two { grid-template-columns: 1fr; }
  .gp-main .af-banner { margin-left: 0; margin-right: 0; border-radius: 0; }
}

/* ===================== HERO ===================== */
.af-hero { background: var(--ink); color: #fff; text-align: center; padding: 64px 24px 58px; overflow: hidden; }
.af-hero-badge {
  display: inline-block; background: var(--pink); color: #fff; font-size: 12.5px;
  font-weight: 700; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
  transform: rotate(-2deg);
}
.af-hero h1 {
  font-family: var(--display); font-size: clamp(38px, 6.5vw, 84px); line-height: .98;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px;
}
.af-hero h1 em { font-style: normal; color: var(--cyan); }
.af-hero p { color: #b9b9b9; font-size: 15.5px; max-width: 560px; margin: 0 auto 26px; line-height: 1.65; }
.af-hero-cta {
  display: inline-block; background: #fff; color: var(--ink); font-weight: 800; font-size: 14.5px;
  padding: 13px 30px; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.af-hero-cta:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 0 0 3px var(--pink); }
.af-hero-stats { display: flex; gap: 44px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.af-hero-stats b { font-family: var(--display); display: block; font-size: 34px; letter-spacing: 1px; }
.af-hero-stats span { font-size: 12.5px; color: #9a9a9a; }

/* ===================== BANNER SECTION (họa tiết mũi tên) ===================== */
.af-banner {
  height: 150px; display: flex; align-items: center; justify-content: center;
  margin: 46px 0 34px; overflow: hidden;
}
.af-banner span {
  font-family: var(--display); font-size: clamp(26px, 4vw, 40px); text-transform: uppercase;
  letter-spacing: 1.5px; transform: rotate(-4deg); color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .18);
}
.af-banner.ink span { color: var(--ink); text-shadow: none; }
/* các dải màu — họa tiết mũi tên/tia chớp lặp */
.af-banner.purple { margin: 0; border-radius: 0; background: var(--purple); }
#danh-sach-rap { background: transparent; }
#danh-sach-rap span { color: var(--ink); text-shadow: none; }
.af-banner.green { border-radius: 0; background: var(--green); }
.af-banner.orange { border-radius: 0; background: var(--orange); }
.af-banner.red { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170'%3E%3Cg fill='%23FCD1D1'%3E%3Cpath d='M20 30l34-18-10 16 22-4-38 26 8-16z'/%3E%3Cpath d='M160 12l26 10-14 4 18 12-34-2 10-10z' transform='rotate(40 170 25)'/%3E%3Cpath d='M60 120l30-16-8 14 20-3-34 23 7-14z' transform='rotate(-25 75 125)'/%3E%3Cpath d='M200 100l28-15-8 13 19-3-32 22 7-13z' transform='rotate(15 210 110)'/%3E%3Cpath d='M120 60l22 8-11 3 14 10-27-1 8-8z' transform='rotate(-50 130 68)'/%3E%3C/g%3E%3C/svg%3E") repeat; }

.af-sec-sub { text-align: center; color: var(--gray); font-size: 14px; margin: -14px 0 26px; }

/* ===================== LƯỚI THƯƠNG HIỆU ===================== */
.af-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.af-brand-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px;
  cursor: pointer; background: var(--paper); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.af-brand-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.af-brand-top { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.af-brand-top .lg {
  width: 48px; height: 48px; border-radius: 12px; background: var(--chip); flex: none;
  display: grid; place-items: center; font-size: 22px; overflow: hidden;
}
.af-brand-top .lg img { width: 36px; height: 36px; object-fit: contain; }
.af-brand-top b { font-size: 16px; display: block; line-height: 1.2; text-transform: uppercase; letter-spacing: .2px; }
.af-brand-top .cnt { font-size: 12.5px; color: var(--pink); font-weight: 700; }
.af-brand-card p { color: var(--gray); font-size: 13px; line-height: 1.55; }

/* ===================== TABS + LƯỚI PHIM ===================== */
.af-tabs { display: flex; justify-content: center; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.af-tab {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--gray2); padding: 12px 28px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.af-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.af-movies { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
.af-movies[hidden] { display: none; }
.af-movie { min-width: 0; }
.af-poster {
  aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; margin-bottom: 10px;
  background: linear-gradient(150deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 54px; color: #fff;
  transition: transform .15s;
}
.af-movie:hover .af-poster { transform: rotate(-1.5deg) scale(1.02); }
.af-poster img { width: 100%; height: 100%; object-fit: cover; }
.af-movie h3 {
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; line-height: 1.35;
  margin: 0 0 4px; letter-spacing: .2px;
}
.af-movie .meta { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.af-rating {
  display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff;
  border-radius: 5px; padding: 2.5px 7px; margin-right: 6px; vertical-align: 1px;
}
.af-rating.P { background: var(--green2); }
.af-rating.K { background: #3b82f6; }
.af-rating.T13 { background: #f59e0b; }
.af-rating.T16 { background: var(--orange2); }
.af-rating.T18 { background: #ef4444; }
.af-rating.C { background: var(--ink); }
.af-date-chip { display: inline-block; font-size: 11px; font-weight: 600; background: var(--chip); border-radius: 5px; padding: 2.5px 8px; color: #444; }

/* ===================== BÀI VIẾT ===================== */
.af-prose { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: #333; }
.af-prose h2 { font-family: var(--display); font-size: 24px; letter-spacing: .5px; text-transform: uppercase; margin: 34px 0 14px; color: var(--ink); line-height: 1.2; }
.af-prose h3 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; color: var(--ink); }
.af-prose p { margin-bottom: 18px; }
.af-prose ul, .af-prose ol { margin: 0 0 18px 22px; }
.af-prose li { margin-bottom: 8px; }
.af-prose a { color: var(--pink); text-decoration: underline; }
.af-prose img { border-radius: 12px; margin: 18px 0; }
.af-prose blockquote { border-left: 4px solid var(--pink); padding-left: 20px; margin: 0 0 20px; color: #b3457a; }
.af-prose strong { color: var(--ink); }

/* ===================== MODAL CHI TIẾT RẠP ===================== */
body.modal-open { overflow: hidden; }
.modal {
  display: none; position: fixed; inset: 0; background: rgba(10, 10, 10, .55);
  justify-content: center; align-items: center; z-index: 999;
}
.modal-content {
  width: 96%; max-width: 980px; height: 90vh; background: var(--paper);
  border: 2.5px solid var(--ink); display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; box-shadow: 10px 10px 0 rgba(10, 10, 10, .85);
}
.modal-header, .modal-footer { background: var(--paper); padding: 10px 18px; flex-shrink: 0; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid var(--ink); }
.modal-footer { border-top: 1px solid var(--line); color: var(--gray2); font-size: 12px; }
.modal-header h3 { padding: 0; margin: 0; font-size: 16px; }
.modal-header img { border-radius: 10px; background: var(--chip); padding: 3px; }
.close { cursor: pointer; font-size: 32px; color: var(--ink); line-height: 1; border: 0; background: transparent; padding: 0; }
.close:hover { color: var(--pink); }
.modal-body { display: flex; height: 100%; min-height: 0; }
.left-panel { display: flex; flex-direction: column; height: 100%; width: 40%; border-right: 1px solid var(--line); }
.right-panel { display: flex; flex-direction: column; width: 60%; height: 100%; }
.select-wrapper { flex: 0 0 auto; padding: 12px; border-bottom: 1px solid var(--line); }
.select-wrapper label { font-size: 12.5px; color: var(--gray); font-weight: 600; }
.modal select:not(.sr-only) {
  width: 100%; padding: 9px 12px; margin-top: 5px; font-size: 14px; border-radius: 10px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-family: inherit;
}
.modal-area-select { max-width: none; margin: 0; }
.modal-area-select .brand-area-label { margin-bottom: 6px; }
.modal-area-trigger { min-height: 54px; border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); }
.modal-area-trigger:hover { box-shadow: 3px 3px 0 var(--ink); }
.modal-area-trigger .brand-area-trigger-icon { width: 36px; height: 36px; border-radius: 10px; }
.modal-area-menu { top: calc(100% + 8px); width: 100%; max-height: min(420px, 62vh); }
.modal-area-menu .brand-area-options { max-height: min(310px, 48vh); }
.branch-list-wrapper { flex: 1 1 auto; overflow-y: auto; padding: 12px; }
.branch-list { margin: 0; padding: 0; list-style: none; }
.branch-list li {
  margin-bottom: 6px; background: var(--paper); padding: 11px 13px; border-radius: 10px;
  cursor: pointer; transition: all .15s; font-size: 14px; border: 1.5px solid var(--line);
}
.branch-list li:hover { border-color: var(--ink); }
.branch-list li.active { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #fff7fb; }
.branch-list li .name-location { font-size: 13.5px; color: var(--ink); font-weight: 700; padding: 0; margin: 0; }
.branch-list li p { font-size: 12.5px; color: var(--gray); font-weight: 400; padding: 0; margin: 2px 0 0; }
.branch-info { padding: 14px 16px 6px; flex: 0 0 auto; }
.branch-info h4 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.branch-info p { padding: 0; margin: 0 0 8px; font-size: 13.5px; color: #333; line-height: 140%; }
.detail-item-p { display: flex; justify-content: flex-start; align-content: flex-start; gap: 8px; }
.map-wrapper { flex: 1 1 auto; overflow: hidden; padding: 12px 16px 16px; }
.map-frame { width: 100%; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; }

/* ===================== TRANG THƯƠNG HIỆU ===================== */
.breadcrumb-lite { font-size: 13px; color: var(--gray2); margin: 22px 0 0; }
.breadcrumb-lite a { color: var(--pink); font-weight: 600; }
.brand-header { display: flex; align-items: center; gap: 18px; margin: 20px 0 18px; }
.brand-header .lg {
  width: 68px; height: 68px; border-radius: 16px; background: var(--chip); flex: none;
  display: grid; place-items: center; font-size: 30px;
}
.brand-header .lg img { width: 50px; height: 50px; object-fit: contain; }
.brand-header h1 { font-family: var(--display); font-size: clamp(22px, 3.4vw, 36px); text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; }
.brand-header .meta { color: var(--gray); font-size: 13.5px; margin-top: 6px; }
.brand-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.brand-nav a {
  font-size: 12.5px; font-weight: 600; padding: 8px 14px; border: 1.5px solid var(--ink);
  border-radius: 999px; color: var(--ink); background: var(--paper); transition: all .12s;
}
.brand-nav a:hover { box-shadow: 3px 3px 0 var(--ink); transform: translateY(-1px); }
.brand-nav a.active { background: var(--ink); color: #fff; }
.brand-area-select { position: relative; display: block; max-width: 420px; margin-bottom: 18px; }
.brand-area-label {
  display: block; margin-bottom: 7px; color: var(--gray); font-size: 12px;
  font-weight: 700; letter-spacing: .02em;
}
.brand-area-trigger {
  width: 100%; min-height: 62px; padding: 9px 12px; border: 1.5px solid var(--ink);
  border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; gap: 11px; text-align: left;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.brand-area-trigger:hover { transform: translateY(-1px); box-shadow: 4px 5px 0 var(--ink); }
.brand-area-trigger:focus-visible { outline: 3px solid rgba(139, 124, 247, .35); outline-offset: 3px; }
.brand-area-select.open .brand-area-trigger { border-color: var(--purple); box-shadow: 3px 3px 0 var(--purple); }
.brand-area-trigger-icon {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(139, 124, 247, .16);
  color: #6f5ee8; display: grid; place-items: center; flex: none;
}
.brand-area-trigger-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-area-trigger-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; }
.brand-area-trigger-copy small { color: var(--gray2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-area-trigger-copy strong { overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.brand-area-total {
  min-width: 30px; height: 25px; padding: 0 8px; border-radius: 999px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.brand-area-chevron { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.brand-area-select.open .brand-area-chevron { transform: rotate(180deg); }
.brand-area-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 250;
  width: min(440px, calc(100vw - 32px)); max-height: min(520px, 70vh);
  padding: 14px; overflow: hidden; border: 2px solid var(--ink); border-radius: 16px;
  background: var(--paper); box-shadow: 7px 7px 0 var(--ink);
}
.brand-area-menu-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.brand-area-menu-head strong { display: block; font-family: var(--display); font-size: 17px; letter-spacing: .03em; text-transform: uppercase; }
.brand-area-menu-head span { display: block; margin-top: 2px; color: var(--gray); font-size: 11.5px; }
.brand-area-close {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none;
}
.brand-area-close:hover { border-color: var(--ink); background: var(--chip); }
.brand-area-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand-area-search-wrap { position: relative; display: block; margin: 0 0 10px; }
.brand-area-search-wrap > svg {
  position: absolute; top: 50%; left: 12px; width: 17px; height: 17px;
  transform: translateY(-50%); fill: none; stroke: var(--gray); stroke-width: 1.8; stroke-linecap: round;
}
.brand-area-search {
  width: 100%; height: 42px; padding: 0 13px 0 38px; border: 1.5px solid var(--line);
  border-radius: 11px; background: #fafafa; color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 600; outline: none;
}
.brand-area-search:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 124, 247, .15); }
.brand-area-options { max-height: min(330px, 48vh); overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.brand-area-option {
  width: 100%; min-height: 43px; padding: 8px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; cursor: pointer; text-align: left;
  font-family: inherit; transition: background .12s, color .12s;
}
.brand-area-option:hover, .brand-area-option:focus-visible { outline: none; background: var(--chip); }
.brand-area-option[aria-selected="true"] { background: var(--ink); color: #fff; }
.brand-area-option span { font-size: 13px; font-weight: 700; }
.brand-area-option small { color: var(--gray2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.brand-area-option[aria-selected="true"] small { color: #d5d5d5; }
.brand-area-empty { padding: 20px 8px 10px; color: var(--gray); font-size: 13px; text-align: center; }
.brand-area-backdrop { display: none; }
.brand-area-menu[hidden], .brand-area-backdrop[hidden] { display: none; }
.brand-area-group { scroll-margin-top: 82px; }
.brand-area-group h2 {
  font-family: var(--display); font-size: 19px; letter-spacing: .5px; text-transform: uppercase;
  margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2.5px solid var(--ink);
}
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.branch-card {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.branch-card:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.branch-card h3 { font-size: 14.5px; font-weight: 800; margin: 0 0 8px; text-transform: uppercase; }
.branch-card p { font-size: 12.5px; color: var(--gray); margin: 3px 0; line-height: 1.55; }
.branch-card .map-link { font-size: 12.5px; font-weight: 700; color: var(--pink); display: inline-block; margin-top: 8px; }

/* ===================== FOOTER TRONG SIDEBAR ===================== */
.af-foot {
  margin-top: 18px; padding: 17px 15px 14px; overflow: hidden;
  border-radius: 16px; background: var(--ink); color: #fff;
}
.af-foot-brand {
  display: inline-block; font-family: var(--display); font-size: 22px;
  letter-spacing: .7px; line-height: 1; transform: rotate(-2deg);
}
.af-foot-brand span { color: var(--cyan); }
.af-foot-desc { margin: 10px 0 13px; color: #aaa; font-size: 11.5px; line-height: 1.5; }
.af-foot-links { display: flex; flex-direction: column; gap: 2px; }
.af-foot-links a {
  padding: 7px 8px; border-radius: 8px; color: #ddd;
  font-size: 12px; font-weight: 600; transition: background .12s, color .12s;
}
.af-foot-links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.af-social { display: flex; gap: 7px; margin: 14px 0 11px; }
.af-social a {
  width: 31px; height: 31px; border-radius: 9px; color: #fff;
  background: rgba(255, 255, 255, .1); display: grid; place-items: center;
}
.af-social a:hover { background: var(--purple); color: #fff; }
.af-social svg { width: 15px; height: 15px; }
.af-copy { padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .12); color: #777; font-size: 10.5px; }

/* ===================== MOBILE ===================== */
@media (max-width: 860px) {
  .af-menu { display: none; }
  .af-lang { display: none; }
  .af-nav-in { gap: 14px; padding: 0 16px; }
  .af-navright { flex: 1 1 auto; min-width: 0; }
  .gp-hsearch { flex: 1 1 auto; min-width: 0; }
  .af-banner { height: 110px; margin: 34px 0 26px; }
  .af-movies { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 12px; }
}
@media (max-width: 600px) {
  html { scrollbar-gutter: auto; }
  .af-container { padding: 0 16px; }
  .af-nav-in { height: 58px; gap: 10px; padding: 0 12px; }
  .af-logo { font-size: 21px; letter-spacing: .5px; }
  .gp-search-inp { height: 40px; padding-right: 11px; font-size: 13px; }
  .gp-search-panel {
    position: fixed; top: 64px; left: 10px; right: 10px; width: auto;
    max-height: calc(100dvh - 76px); padding: 12px; border-radius: 14px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .gp-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-sr-row { min-height: 56px; padding: 7px 6px; }
  .gp-sr-emoji { width: 40px; height: 40px; }
  .gp-main { padding-bottom: 24px; }
  .af-hero { padding: 38px 16px 34px; }
  .af-hero h1 { font-size: clamp(36px, 12vw, 52px); margin-bottom: 14px; }
  .af-hero p { font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
  .af-hero-cta { min-height: 44px; padding: 12px 25px; }
  .af-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
  .af-hero-stats b { font-size: 27px; }
  .af-hero-stats span { display: block; font-size: 10.5px; line-height: 1.3; }
  .af-banner { height: 84px; margin: 28px 0 22px; }
  .af-banner span { font-size: 25px; }
  #danh-sach-rap { height: 76px; }
  .af-sec-sub { margin: -5px 0 20px; font-size: 13px; line-height: 1.5; }
  .af-brands { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .af-brand-card { padding: 16px; }
  .af-brand-card:hover { transform: none; box-shadow: none; }
  .af-tabs { margin-bottom: 20px; }
  .af-tab { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .af-movies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .af-prose { font-size: 15px; line-height: 1.75; }
  .af-prose h2 { font-size: 21px; margin-top: 28px; }
  .breadcrumb-lite { margin-top: 16px; font-size: 12px; line-height: 1.5; }
  .brand-header { align-items: flex-start; gap: 12px; margin: 16px 0 18px; }
  .brand-header .lg { width: 56px; height: 56px; border-radius: 13px; }
  .brand-header .lg img { width: 42px; height: 42px; }
  .brand-header h1 { font-size: 23px; }
  .brand-header .meta { font-size: 12px; line-height: 1.45; }
  .brand-area-select { max-width: none; margin-bottom: 22px; }
  .brand-area-trigger { min-height: 60px; border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); }
  .brand-area-menu {
    position: fixed; top: auto; left: 10px; right: 10px; bottom: 10px; z-index: 1001;
    width: auto; max-height: min(72dvh, 610px); padding: 16px;
    border-radius: 20px; box-shadow: 0 18px 60px rgba(0, 0, 0, .32);
  }
  .brand-area-backdrop {
    position: fixed; inset: 0; z-index: 1000; display: block;
    background: rgba(10, 10, 10, .52); backdrop-filter: blur(2px);
  }
  body.area-picker-open { overflow: hidden; }
  .brand-area-options { max-height: calc(72dvh - 154px); }
  .brand-area-option { min-height: 48px; padding: 9px 11px; }
  .brand-area-close { width: 40px; height: 40px; }
  .brand-area-group h2 { margin-top: 26px; font-size: 18px; }
  .branch-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .branch-card { padding: 15px 16px; }
  .branch-card:hover { box-shadow: none; }
  .branch-card .map-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }
  .modal-content { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .modal-header { min-height: 58px; padding: 8px 14px; }
  .modal-header h3 { min-width: 0; }
  .modal-header h3 > div { min-width: 0; }
  .modal-header h3 img { width: 36px; height: 36px; flex: none; }
  .modal-header h3 div div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .close { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
  .modal-body { flex-direction: column; }
  .left-panel { width: 100%; height: auto; max-height: 36%; }
  .right-panel { width: 100%; height: auto; min-height: 0; flex: 1; }
  .left-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .select-wrapper { padding: 9px 12px; }
  .modal select:not(.sr-only) { min-height: 42px; margin-top: 3px; }
  .branch-list-wrapper { max-height: 23vh; padding: 8px 10px; }
  .branch-list li { min-height: 42px; padding: 10px 12px; }
  .branch-info { padding: 11px 14px 4px; }
  .branch-info h4 { margin-bottom: 6px; font-size: 17px; }
  .branch-info p { margin-bottom: 5px; font-size: 12px; }
  .map-wrapper { min-height: 190px; padding: 8px 12px 12px; }
  .map-frame { min-height: 190px; }
  .branch-list li p { display: none; }
  .modal-footer { display: none; }
}
@media (max-width: 360px) {
  .af-logo { font-size: 18px; }
  .af-nav-in { gap: 8px; padding: 0 9px; }
  .gp-search-ic { left: 10px; }
  .gp-search-inp { padding-left: 29px; font-size: 12.5px; }
  .brand-header h1 { font-size: 20px; }
  .brand-header .meta { font-size: 11.5px; }
  .af-hero-stats span { font-size: 9.5px; }
}
