/* Trang giá từng lô Vinhomes King Park */
.gtl-dau { padding: 26px 0 10px; }
@media (min-width: 900px) { .gtl-dau { padding-top: 40px; } }
.crumb { font-size: .84rem; color: var(--muted); margin: 0 0 12px; }
.crumb a { color: var(--muted); }
.crumb span[aria-hidden] { margin: 0 6px; }
.gtl-dau h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -.015em; line-height: 1.15; max-width: 900px; }
.gtl-lead { margin: 14px 0 0; color: var(--ink-2); max-width: 760px; }
.canh-bao { margin: 18px 0 0; padding: 13px 16px 13px 46px; position: relative; border-radius: var(--radius-sm); background: var(--red-50); border: 1px solid #efd2c8; color: #5e2a1d; font-size: .94rem; max-width: 900px; }
.canh-bao::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.canh-bao p { margin: 0; }

.gtl-so { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 820px) { .gtl-so { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gtl-so li { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-2); min-width: 0; }
.gtl-so b { display: block; font-size: 1.22rem; font-weight: 700; color: var(--teal-900); font-variant-numeric: tabular-nums; line-height: 1.25; }
.gtl-so span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* Bộ lọc */
.gtl-ban-do { padding: 14px 0 34px; }
.gtl-loc { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 12px; }
.gtl-nhom { display: flex; gap: 6px; flex-wrap: wrap; }
.gtl-nhom button, .gtl-xoa {
  font: inherit; font-size: .88rem; font-weight: 550; line-height: 1.2; min-height: 38px; padding: 7px 13px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.gtl-nhom button:hover { border-color: var(--teal-100); background: var(--teal-50); }
.gtl-nhom button[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.gtl-nhom + .gtl-nhom { padding-left: 10px; border-left: 1px solid var(--line); }
.gtl-sel { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.gtl-sel select { font: inherit; font-size: .9rem; min-height: 38px; padding: 6px 30px 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.gtl-xoa { border-style: dashed; color: var(--teal-700); }
@media (max-width: 720px) {
  .gtl-loc { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 10px; padding: 2px 16px 6px; scrollbar-width: none; }
  .gtl-loc::-webkit-scrollbar { display: none; }
  .gtl-nhom { flex-wrap: nowrap; flex: none; }
  .gtl-nhom button, .gtl-sel, .gtl-xoa { flex: none; white-space: nowrap; }
}

/* Bản đồ + thẻ lô */
.gtl-khung { display: grid; gap: 14px; }
@media (min-width: 980px) { .gtl-khung { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; } }
.gtl-map-wrap { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.gtl-map { height: min(74vh, 660px); min-height: 380px; background: #fff; }
@media (max-width: 720px) { .gtl-map { height: 54vh; min-height: 340px; } }
.gtl-map:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.leaflet-container { font-family: var(--font); }
.gtl-goi-y { position: absolute; left: 50%; top: 10px; translate: -50% 0; z-index: 500; pointer-events: none; padding: 6px 12px; border-radius: 999px; background: rgba(21, 35, 31, .78); color: #fff; font-size: .82rem; white-space: nowrap; transition: opacity .2s; }
.gtl-goi-y[hidden] { display: block; opacity: 0; }
.gtl-chu-giai { position: absolute; left: 10px; bottom: 10px; z-index: 500; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); font-size: .76rem; line-height: 1.2; color: var(--ink-2); max-width: calc(100% - 20px); }
.gtl-chu-giai .tieu { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.gtl-chu-giai .tieu label { font-weight: 500; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; color: var(--ink-2); }
.gtl-thang { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.gtl-thang span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gtl-thang i { width: 14px; height: 10px; border-radius: 3px; border: 1px solid rgba(90, 31, 16, .25); display: inline-block; }
.gtl-dem { position: absolute; right: 10px; bottom: 10px; z-index: 500; margin: 0; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .gtl-chu-giai { left: 8px; bottom: 8px; padding: 6px 8px; font-size: .7rem; }
  .gtl-chu-giai .tieu { margin-bottom: 4px; }
  .gtl-thang { gap: 3px 7px; }
  .gtl-thang i { width: 12px; height: 9px; }
  .gtl-dem { top: 10px; bottom: auto; right: 10px; font-size: .72rem; padding: 4px 8px; }
  .gtl-goi-y { top: 56px; font-size: .76rem; }
}

/* Nhãn trên bản đồ */
.gtl-nhan { width: 0; height: 0; }
.gtl-nhan span { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 9.5px; font-weight: 650; line-height: 1; color: #2a0f07; letter-spacing: -.01em; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.gtl-nhan.lon span { font-size: 11px; }
.gtl-nhan.cho span { color: #555; font-weight: 550; }
.gtl-nhan.hot span { color: #b91c1c; font-weight: 750; }
.gtl-pk { width: 0; height: 0; }
.gtl-pk button { position: absolute; left: 0; top: 0; translate: -50% -50%; font: inherit; cursor: pointer; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 2px solid #fff; background: var(--teal-900); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); text-align: center; line-height: 1.2; }
.gtl-pk b { display: block; font-size: .92rem; font-weight: 700; }
.gtl-pk small { display: block; font-size: .74rem; opacity: .88; }
.gtl-pk button:hover { background: var(--teal-700); }
@media (max-width: 720px) {
  .gtl-pk button { padding: 5px 10px; border-width: 1.5px; }
  .gtl-pk b { font-size: .78rem; }
  .gtl-pk small { display: none; }
}

/* Thẻ lô */
.gtl-the { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
@media (min-width: 980px) { .gtl-the { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; } }
.gtl-the h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.gtl-the .muted { color: var(--muted); font-size: .9rem; }
.the-dau { display: flex; align-items: flex-start; gap: 10px; }
.the-dau > div { flex: 1; min-width: 0; }
.the-loai { display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 3px; }
.the-dong { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
.the-dong:hover { background: var(--paper); }
.the-pk { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.the-gia { margin: 14px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--teal-50); border: 1px solid var(--teal-100); }
.the-gia .nho { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-700); }
.the-gia b { display: block; font-size: 1.75rem; font-weight: 750; color: var(--teal-900); line-height: 1.2; margin: 2px 0; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.the-gia span:last-child { font-size: .88rem; color: var(--ink-2); }
.the-gia.cho { background: var(--slate-50); border-color: #dfe2df; }
.the-gia.cho b { font-size: 1.3rem; color: var(--ink); }
.the-tt { list-style: none; padding: 0; margin: 12px 0 0; }
.the-tt li { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.the-tt li:last-child { border-bottom: 0; }
.the-tt span { color: var(--muted); flex: none; }
.the-tt b { font-weight: 600; text-align: right; min-width: 0; }
.the-nut { display: grid; gap: 8px; margin-top: 14px; }
.the-nut .btn { width: 100%; }
.the-chu { margin: 10px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.the-goi-y { margin: 14px 0 0; padding: 0; list-style: none; }
.the-goi-y li { margin: 0; }
.the-goi-y-tieu { margin: 16px 0 0; font-size: .8rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* Điện thoại: thẻ lô trượt lên từ dưới */
@media (max-width: 979px) {
  .gtl-the--trong { display: none; }
  .gtl-the--lo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 64vh; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .22); animation: gtl-len .22s ease-out; }
  .gtl-the--lo::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--line); margin: -6px auto 10px; }
  .gtl-the--lo { max-height: 56vh; }
  .gtl-the--lo .the-gia { margin-top: 10px; padding: 10px 14px; }
  .gtl-the--lo .the-gia b { font-size: 1.5rem; }
  .gtl-the--lo .the-tt li { padding: 6px 0; font-size: .88rem; }
  body.gtl-mo-the .contact-fab { display: none; }
}
@keyframes gtl-len { from { transform: translateY(30%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .gtl-the--lo { animation: none; } }

/* Danh sách lô */
.gtl-ds { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .gtl-ds { grid-template-columns: 1fr 1fr; gap: 8px 14px; } }
.gtl-ds li { margin: 0; min-width: 0; }
.gtl-muc { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; cursor: pointer; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); }
.gtl-muc:hover { border-color: var(--teal-100); background: var(--teal-50); }
.gtl-muc i { flex: none; width: 10px; align-self: stretch; border-radius: 4px; }
.gtl-muc .ten { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.35; }
.gtl-muc .ten b { font-weight: 650; }
.the-nhan { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 700; font-style: normal; letter-spacing: .02em; line-height: 1.4; font-family: inherit; }
.gtl-muc .the-nhan { margin-left: 4px; padding: 1px 6px; font-size: .64rem; }
.gtl-muc .ten small { display: block; color: var(--muted); font-size: .82rem; }
.gtl-muc .tien { flex: none; text-align: right; font-weight: 700; color: var(--teal-900); font-variant-numeric: tabular-nums; font-size: .98rem; }
.gtl-muc .tien small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.gtl-the .gtl-muc { padding: 9px 11px; }
.gtl-them { margin-top: 16px; }
.gtl-rong { color: var(--muted); }

/* Cách tính giá */
.gtl-doc { max-width: 800px; }
.gtl-doc h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: -.012em; margin-bottom: 14px; }
.gtl-doc ul { padding-left: 1.15em; }
.gtl-doc li { margin-bottom: .45em; }

/* Mẫu nhà trong thẻ lô */
.the-mau { display: grid; gap: 10px; margin: 12px 0 0; padding: 12px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-2); }
.the-mau-anh { display: block; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; }
.the-mau-anh img { display: block; width: 100%; height: auto; }
.the-mau-chu { min-width: 0; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.the-mau-chu .nho { display: block; font-size: .7rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-700); }
.the-mau-chu b { display: block; font-size: .98rem; font-weight: 700; color: var(--ink); margin: 1px 0 2px; }
.the-mau-chu > span { display: block; }
.the-mau-ghi { margin-top: 4px; font-size: .8rem; color: var(--muted); }
.the-mau-xem { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 650; color: var(--teal-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.the-mau-xem:hover { color: var(--teal-900); }
.the-mau--khong { display: block; padding: 10px 12px; }
.the-mau--khong p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.the-mau--khong b { color: var(--ink); }
.the-mau-goi { margin: 14px 0 0; font-size: .9rem; }
@media (max-width: 979px) {
  .gtl-the--lo .the-mau { padding: 10px; gap: 8px; margin-top: 10px; }
}

/* Chip lọc theo mẫu nhà (hiện khi bấm "xx lô cùng cỡ" ở mục mẫu nhà) */
.gtl-chip-mau { font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; min-height: 38px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--teal-900); background: var(--teal-900); color: #fff; cursor: pointer; }
.gtl-chip-mau span { margin-left: 4px; opacity: .8; }
@media (max-width: 720px) { .gtl-chip-mau { flex: none; white-space: nowrap; } }

/* Mục mẫu nhà theo diện tích đất */
.mn-luoi { display: grid; gap: 16px; }
@media (min-width: 700px) { .mn-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mn-luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mn-the { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, .06)); }
.mn-anh { position: relative; display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; cursor: zoom-in; }
.mn-anh img { display: block; width: 100%; height: auto; }
.mn-anh span { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(21, 35, 31, .78); color: #fff; font-size: .74rem; font-weight: 600; }
.mn-chu { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.mn-dat { margin: 0; font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mn-dat b { font-size: 1.3rem; font-weight: 750; color: var(--teal-900); letter-spacing: -.01em; }
.mn-chu h3 { margin: 4px 0 0; font-size: 1.06rem; font-weight: 700; }
.mn-pk { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.mn-chu ul { margin: 10px 0 0; padding-left: 1.05em; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.mn-chu li { margin: 0 0 4px; }
.mn-nut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.mn-nut .btn { flex: 1 1 auto; }
.mn-chu-thich { margin: 16px 0 0; font-size: .84rem; color: var(--muted); max-width: 820px; }

/* Hộp xem bản vẽ */
body.gtl-xem-mo { overflow: hidden; }
.gtl-xem { width: min(1320px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); overflow: hidden; }
.gtl-xem::backdrop { background: rgba(10, 18, 16, .78); }
.gtl-xem[open] { display: flex; flex-direction: column; }
.xem-dau { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line-2); }
.xem-tieu { flex: 1; min-width: 0; line-height: 1.3; }
.xem-tieu b { display: block; font-size: .98rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xem-tieu span { display: block; font-size: .82rem; color: var(--muted); }
.xem-lon { flex: none; font-size: .86rem; font-weight: 600; color: var(--teal-700); }
.xem-dong { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.35rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.xem-dong:hover { background: var(--paper); }
.xem-vung { position: relative; flex: 1; min-height: 0; display: flex; background: #f4f2ef; }
.xem-khung { position: relative; flex: 1; min-width: 0; min-height: 0; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.xem-khung::before { content: "Đang tải bản vẽ…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; z-index: 0; }
.xem-anh { position: relative; z-index: 1; display: block; max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; cursor: zoom-in; }
.xem-khung.phong { display: block; place-items: start; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.xem-khung.phong .xem-anh { width: 200%; max-width: none; max-height: none; cursor: zoom-out; }
.xem-khung.phong::before, .xem-vung.dang-phong .xem-goi { display: none; }
.xem-goi { position: absolute; left: 50%; top: 10px; translate: -50% 0; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(21, 35, 31, .72); color: #fff; font-size: .78rem; white-space: nowrap; pointer-events: none; }
.xem-lui, .xem-toi { z-index: 2; position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.xem-lui { left: 10px; }
.xem-toi { right: 10px; }
.xem-lui:hover, .xem-toi:hover { background: #fff; }
.xem-trang { display: flex; gap: 6px; padding: 10px 12px 4px; overflow-x: auto; scrollbar-width: none; }
.xem-trang::-webkit-scrollbar { display: none; }
.xem-trang button { flex: none; font: inherit; font-size: .82rem; font-weight: 550; padding: 6px 12px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.xem-trang button[aria-current="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.xem-nguon { margin: 0; padding: 4px 16px 12px; font-size: .76rem; color: var(--muted); }
@media (max-width: 720px) {
  .gtl-xem { border-radius: 0; width: 100vw; height: 100dvh; max-height: 100dvh; }
  .xem-dau { padding: 8px 8px 8px 12px; }
  .xem-tieu b { font-size: .9rem; }
  .xem-lon { font-size: .8rem; }
  .xem-anh { max-height: none; width: 100%; }
  .xem-khung.phong .xem-anh { width: 320%; }
  .xem-lui, .xem-toi { top: auto; bottom: 8px; translate: none; width: 40px; height: 40px; font-size: 1.5rem; }
}

/* Video review phân khu */
.vd-tab { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.vd-tab button {
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; min-height: 40px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.vd-tab button:hover { border-color: var(--teal-100); background: var(--teal-50); }
.vd-tab button[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.vd-luoi { display: grid; gap: 16px; }
@media (min-width: 760px) { .vd-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vd-the { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-2); overflow: hidden; }
.vd-anh, .vd-short-anh, .the-vid-anh { position: relative; display: block; padding: 0; border: 0; background: #1b1b1b; cursor: pointer; overflow: hidden; }
.vd-anh img, .vd-short-anh img, .the-vid-anh img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.vd-anh:hover img, .vd-short:hover img, .the-vid:hover img { transform: scale(1.03); }
.vd-phat { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%; background: rgba(165, 63, 37, .92); box-shadow: 0 4px 18px rgba(0, 0, 0, .35); pointer-events: none; }
.vd-phat::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.vd-anh .vd-phat { left: 12px; top: auto; bottom: 12px; width: 50px; height: 50px; translate: none; }
.vd-anh .vd-phat::after { left: 20px; top: 15px; border-width: 10px 0 10px 15px; }
.vd-dai { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .76rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vd-chu { padding: 12px 14px 14px; }
.vd-chu h3 { margin: 0 0 8px; font-size: 1.04rem; font-weight: 700; line-height: 1.35; }
.vd-moc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vd-moc button, .vid-moc button {
  display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px;
  background: none; font: inherit; font-size: .9rem; line-height: 1.35; color: var(--ink-2); text-align: left; cursor: pointer;
}
.vd-moc button:hover { background: var(--teal-50); color: var(--ink); }
.vd-moc button span, .vid-moc button span { flex: none; min-width: 42px; font-weight: 700; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.vd-ngan h3 { margin: 22px 0 10px; font-size: 1rem; font-weight: 700; }
.vd-ngan ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 14px; }
.vd-short { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.vd-short-anh { border-radius: 12px; }
.vd-short-anh .vd-phat { width: 46px; height: 46px; }
.vd-short-anh .vd-phat::after { left: 18px; top: 14px; border-width: 9px 0 9px 14px; }
.vd-short-ten { display: block; margin-top: 8px; font-size: .88rem; font-weight: 600; line-height: 1.35; }
.vd-kenh { margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
.vd-kenh a { font-weight: 650; color: var(--teal-700); }
@media (max-width: 720px) {
  .vd-tab { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 4px; scrollbar-width: none; }
  .vd-tab::-webkit-scrollbar { display: none; }
  .vd-tab button { flex: none; white-space: nowrap; }
  .vd-ngan ul { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vd-ngan ul::-webkit-scrollbar { display: none; }
  .vd-ngan li { flex: none; width: 42vw; max-width: 180px; scroll-snap-align: start; }
}

/* Video trong thẻ lô */
.the-vid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; margin: 10px 0 0; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--paper); font: inherit; text-align: left; cursor: pointer; color: var(--ink-2); }
.the-vid:hover { border-color: var(--teal-100); background: var(--teal-50); }
.the-vid-anh { border-radius: 7px; }
.the-vid-anh .vd-phat { width: 30px; height: 30px; }
.the-vid-anh .vd-phat::after { left: 12px; top: 9px; border-width: 6px 0 6px 9px; }
.the-vid-chu { min-width: 0; font-size: .82rem; line-height: 1.35; }
.the-vid-chu .nho { display: block; font-size: .7rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-700); }
.the-vid-chu b { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); margin: 1px 0 1px; }
.the-vid-chu > span:last-child { display: block; color: var(--muted); }
.the-vid-goi { margin-top: 6px; }

/* Hộp phát video */
.gtl-vid { width: min(1040px, calc(100vw - 32px)); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); overflow: auto; }
.gtl-vid::backdrop { background: rgba(10, 18, 16, .82); }
.gtl-vid[open] { display: flex; flex-direction: column; }
.vid-khung { position: relative; flex: none; aspect-ratio: 16 / 9; width: 100%; max-height: calc(100dvh - 200px); background: #000; }
.vid-khung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gtl-vid .xem-tieu b { white-space: normal; }
.gtl-vid.doc { width: fit-content; min-width: 340px; }
.gtl-vid.doc .vid-khung { aspect-ratio: 9 / 16; width: auto; height: min(760px, calc(100dvh - 140px)); max-height: none; align-self: center; }
.vid-moc { display: flex; gap: 6px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.vid-moc::-webkit-scrollbar { display: none; }
.vid-moc button { flex: none; width: auto; gap: 6px; padding: 6px 12px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .84rem; white-space: nowrap; }
.vid-moc button span { min-width: 0; }
.vid-moc button[aria-current="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.vid-moc button[aria-current="true"] span { color: #fbe3d6; }
.vid-cuoi { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 10px 16px 14px; font-size: .88rem; }
.vid-cuoi a { font-weight: 650; color: var(--teal-700); }
@media (max-width: 720px) {
  .gtl-vid { border-radius: 0; width: 100vw; height: 100dvh; max-height: 100dvh; }
  .gtl-vid .xem-dau { padding: 8px 8px 8px 12px; }
  .gtl-vid .xem-tieu b { font-size: .92rem; }
  .gtl-vid.doc { width: 100vw; min-width: 0; }
  .gtl-vid.doc .vid-khung { height: min(calc(100dvh - 130px), 177.7vw); }
  .vid-cuoi { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
