/* Màn Tăng trưởng (tang-truong.js): chỉ dùng token màu có sẵn của app.css, skin Mỏ Neo đổ vào qua --chinh/--tint */
#man-tang-truong { font-variant-numeric: tabular-nums; }
#man-tang-truong .man-dau { flex-wrap: wrap; row-gap: 2px; }
#man-tang-truong .trang-luu { font-size: 12px; color: var(--chu-mo); }
.tt2-cau { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--chu-phu); }
.tt2-than { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; min-width: 0; }
.tt2-than svg { width: 18px; height: 18px; }
.tt2-than svg.tt2-svg { width: 100%; height: auto; }
.tt2-than svg.tt2-cot { width: 100%; height: 140px; }
.tt2-the { position: relative; min-width: 0; padding: 18px; border-radius: 16px; background: var(--mat); border: 1px solid var(--vien); box-shadow: 0 6px 28px rgba(0,0,0,.28); color: var(--chu); }
.tt2-the h3, .tt2-h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; color: var(--chu); }
.tt2-dau-khoi { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tt2-dau-khoi > span { flex: none; font-size: 12px; color: var(--chu-mo); }
.tt2-tang { color: var(--xanh-tot); } .tt2-giam { color: var(--do); } .tt2-mo { color: var(--chu-mo); }

/* màn rộng (gập mở, máy tính bảng): Tăng trưởng chiếm cả bề ngang như Tài khoản, không để khung phải trống */
@media (min-width: 600px) {
  .tt2-than, .tt2-cau { max-width: 760px; }
}

/* nhãn Demo (số mẫu): 1 viên nhỏ cạnh câu tóm tắt và số to mỗi thẻ */
.tt2-demo { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--chinh); color: var(--tren-chinh); font-size: 12px; font-weight: 400; line-height: 1; vertical-align: middle; }
.tt2-demo svg { display: block; width: 10px !important; height: 10px !important; }
.tt2-demo span { display: block; line-height: 1; }
.tt2-o-so { display: flex; align-items: center; gap: 8px; }
.tt2-ghi-mau { margin: -2px 0 4px; padding: 0 12px; font-size: 12px; color: var(--chu-mo); }

/* khối lượt xem cộng dồn */
.tt2-xem { background: var(--mat); display: flex; flex-direction: column; gap: 14px; }
.tt2-nhan-dau { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--chu-phu); }
.tt2-nhan-dau svg { color: var(--chinh-chu); flex: none; }
.tt2-so-dau { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.tt2-so-lon { font-size: 16px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.1; color: var(--chu); }
.tt2-tuan { font-size: 12px; font-weight: 400; color: var(--chu-mo); white-space: nowrap; }
.tt2-chip-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tt2-chip { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 38px; padding: 6px 10px; border-radius: 12px; background: var(--mat2); }
.tt2-chip > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.tt2-chip b { font-size: 14px; font-weight: 400; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tt2-logo { display: block; flex: none; width: 22px; height: 22px; object-fit: contain; }
.tt2-logo-web { width: 22px; height: 22px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--mat3); color: var(--chu-phu); }
.tt2-logo-web svg { width: 70% !important; height: 70% !important; }

/* biểu đồ */
.tt2-bd { position: relative; width: 100%; min-width: 0; touch-action: pan-y; }
.tt2-svg { display: block; max-width: 100%; overflow: visible; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.tt2-luoi { stroke: var(--vien-sang); stroke-width: 1; }
.tt2-truc { fill: var(--chu-mo); font-size: 12px; font-family: inherit; }
.tt2-duong { fill: none; stroke: var(--chinh-chu); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
#tt2-bd-kenh .tt2-duong { stroke-width: 2.5; }
.tt2-ke { stroke: var(--chu-mo); stroke-opacity: .5; stroke-width: 1; }
.tt2-diem { fill: var(--chinh-chu); stroke: var(--mat); stroke-width: 2; }
.tt2-bd-dau { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.tt2-bd-dau > span { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; color: var(--chu-phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt2-bd-chon { flex: none; font-size: 14px; font-weight: 400; color: var(--chinh-chu); }
.tt2-bd-trong.gon { min-height: 0; padding: 4px 0 2px; }
.tt2-bd-trong { display: flex; align-items: center; justify-content: center; min-height: 110px; margin: 0; font-size: 12px; color: var(--chu-phu); text-align: center; }

/* top video */
.tt2-top { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--vien); min-width: 0; }
.tt2-dau-khoi + .tt2-top { border-top: 0; }
a.tt2-top:hover .tt2-top-ten { color: var(--chinh-chu); }
.tt2-bia { position: relative; flex: none; width: 54px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--mat2); display: flex; align-items: center; justify-content: center; color: var(--chu-mo); }
.tt2-bia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt2-bia i { position: absolute; top: 4px; left: 4px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-size: 12px; font-weight: 400; line-height: 1; }
.tt2-bia i.nhat { background: var(--nut-chinh, var(--chinh)); }
.tt2-top-than { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tt2-top-ten { font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--chu); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt2-top-so { display: flex; align-items: baseline; gap: 5px; }
.tt2-top-so strong { font-size: 16px; font-weight: 600; line-height: 1.1; }
.tt2-top-so small, .tt2-top-kenh em { font-size: 12px; color: var(--chu-mo); font-style: normal; }
.tt2-top-kenh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tt2-top-kenh > span { display: inline-flex; align-items: center; gap: 4px; }
.tt2-top-kenh > span em { color: var(--chu-phu); font-weight: 400; }
.tt2-toi { flex: none; width: 14px !important; height: 14px !important; color: var(--chu-mo); }

/* 2 ô số to */
.tt2-hai-so { padding: 6px; display: flex; flex-direction: column; }
.tt2-o { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.tt2-o + .tt2-o { border-top: 1px solid var(--vien); border-radius: 0 0 22px 22px; }
.tt2-o.chon, .tt2-o.chon + .tt2-o, .tt2-o + .tt2-o.chon { border-top-color: transparent; }
.tt2-o.chon { background: var(--tint); border-radius: 16px; }
.tt2-o-trai { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.tt2-o-ten { font-size: 14px; font-weight: 400; color: var(--chu-phu); }
.tt2-o.chon .tt2-o-ten, .tt2-o.chon .tt2-xuong { color: var(--chinh-chu); }
.tt2-o-trai strong { font-size: 16px; font-weight: 600; letter-spacing: -1px; line-height: 1.15; color: var(--chu); }
.tt2-o small { font-size: 12px; line-height: 1.4; color: var(--chu-mo); }
.tt2-o-phai { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tt2-o-phai b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.tt2-xuong { flex: none; width: 14px !important; height: 14px !important; color: var(--chu-mo); transform: rotate(-90deg); }

/* bảng kênh */
.tt2-bang { padding: 6px; }
.tt2-bang h3 { padding: 10px 12px 6px; }
.tt2-hang { display: grid; grid-template-columns: minmax(0, 1fr) 58px 62px 58px; align-items: center; gap: 6px; width: 100%; padding: 0 12px; min-height: 56px; border: 0; border-top: 1px solid var(--vien); border-radius: 0; background: none; color: inherit; font: inherit; text-align: right; cursor: pointer; }
.tt2-hang > span { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; font-size: 14px; color: var(--chu-phu); }
.tt2-hang > span b { font-weight: 400; white-space: nowrap; }
.tt2-hang > span.dam b { font-weight: 400; color: var(--chu); }
.tt2-hang > span small { font-size: 12px; color: var(--chu-mo); line-height: 1.2; }
.tt2-hang > span:last-child b { font-weight: 400; }
.tt2-hang-ten { flex-direction: row !important; align-items: center !important; gap: 10px; }
.tt2-hang-ten b { font-weight: 400 !important; color: var(--chu); overflow: hidden; text-overflow: ellipsis; }
.tt2-hang.chon { background: var(--tint); border-radius: 16px; border-top-color: transparent; }
.tt2-hang.chon + .tt2-hang { border-top-color: transparent; }
.tt2-hang-dau { min-height: 0; padding-bottom: 4px; border-top: 0; cursor: default; }
.tt2-hang-dau > span { display: block; font-size: 12px; font-weight: 400; color: var(--chu-mo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt2-hang-dau > span:first-child { text-align: left; padding-left: 36px; }
.tt2-hang-dau > span.nhan { color: var(--chinh-chu); }
.tt2-ghi { margin: 0; padding: 8px 12px; font-size: 12px; color: var(--chu-mo); }

/* ô số nhỏ: chuyển đổi, Google */
.tt2-luoi-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.tt2-o-nho { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px; border-radius: 16px; background: var(--mat2); }
.tt2-o-nho strong { font-size: 16px; font-weight: 600; letter-spacing: -.5px; line-height: 1.15; color: var(--chu); }
.tt2-o-nho strong.noi { color: var(--chinh-chu); }
.tt2-o-nho b { font-size: 12px; font-weight: 400; color: var(--chu); }
.tt2-o-nho small { font-size: 12px; color: var(--chu-mo); }
.tt2-ss { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 400; }
.tt2-ss svg { width: 12px !important; height: 12px !important; transform: rotate(45deg); }
.tt2-ss.xuong svg { transform: rotate(135deg); }
.tt2-cot { display: block; width: 100%; height: 140px; fill: var(--chinh-chu); }
.tt2-doc { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12px; color: var(--chu-phu); }
.tt2-doc svg { width: 14px !important; height: 14px !important; flex: none; }

/* đang tải, lỗi, trống, đang lấy số */
.tt2-cho { height: 160px; border-radius: 16px; background: linear-gradient(90deg, var(--mat) 0%, var(--mat2) 50%, var(--mat) 100%); background-size: 200% 100%; animation: tt2-cho 1.4s linear infinite; }
@keyframes tt2-cho { to { background-position: -200% 0; } }
.tt2-giua { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; }
.tt2-giua p { margin: 0; font-size: 14px; color: var(--chu-phu); text-wrap: pretty; }  /* «Mất 30 giây.» không để chữ lẻ dòng cuối */
.tt2-quay { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--vien-sang); border-top-color: var(--chinh-chu); animation: tt2-quay .9s linear infinite; }
@keyframes tt2-quay { to { transform: rotate(360deg); } }
.tt2-icon-trong { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--chinh-chu); }
.tt2-icon-trong svg { width: 28px !important; height: 28px !important; }
@media (prefers-reduced-motion: reduce) { .tt2-cho, .tt2-quay { animation: none; } }

@media (max-width: 420px) {
  .tt2-hang { gap: 4px; padding: 0 8px; }
  .tt2-hang-ten { gap: 8px; }
  .tt2-hang-ten b { font-size: 12px; }
}
@media (max-width: 380px) {
  .tt2-the { padding: 14px; border-radius: 16px; }
  .tt2-hang { grid-template-columns: minmax(0, 1fr) 52px 58px 52px; }
  .tt2-hang-dau > span:first-child { padding-left: 32px; }
  .tt2-chip { padding: 6px 8px; gap: 5px; }
}

/* Từng video */
.tt2-tv { display: flex; flex-direction: column; gap: 10px; }
.tt2-tv .tt2-dau-khoi { margin-bottom: 0; }
.tt2-tv-loai { margin: 0; font-size: 12px; font-weight: 400; color: var(--chu-mo); }
.tt2-loc-hang { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.tt2-loc-hang::-webkit-scrollbar { display: none; }
.tt2-loc { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--vien); border-radius: 999px; background: var(--mat2); color: var(--chu-phu); font: inherit; font-size: 12px; font-weight: 400; cursor: pointer; }
.tt2-loc span { display: block; line-height: 1; white-space: nowrap; }
.tt2-loc.chon { background: var(--tint); border-color: transparent; color: var(--chu); }
.tt2-tv-sap { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--chu-mo); }
.tt2-tv-sap .tt2-loc { min-height: 30px; padding: 0 10px; font-size: 12px; }
.tt2-tv-dong { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; border: 0; border-top: 1px solid var(--vien); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.tt2-tv-dong:hover .tt2-top-ten { color: var(--chinh-chu); }
.tt2-bia.nho { width: 44px; height: 78px; border-radius: 12px; }
.tt2-bia > svg { position: absolute; width: 20px !important; height: 20px !important; }
.tt2-bia img { position: relative; z-index: 1; }
.tt2-tv-phu { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt2-tv-phu small { flex: none; font-size: 12px; color: var(--chu-mo); }
.tt2-tv-logo { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tt2-tv-logo em { font-size: 12px; font-style: normal; font-weight: 400; color: var(--chu-mo); }
.tt2-tv-so { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 64px; }
.tt2-tv-so strong { font-size: 16px; font-weight: 600; line-height: 1.1; color: var(--chu); }
.tt2-tv-so small { font-size: 12px; color: var(--chu-mo); white-space: nowrap; }

/* tấm chi tiết 1 video */
.tt2-tam { width: min(440px, calc(100vw - 24px)); max-height: calc(var(--cao, 100dvh) - 32px); padding: 0; border: 1px solid var(--vien); border-radius: 16px; background: var(--mat); color: var(--chu); overflow: auto; }
.tt2-tam::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.tt2-tam-than { display: flex; flex-direction: column; gap: 12px; padding: 0 18px 20px; }
.tt2-tam-video { display: block; width: 100%; max-height: 56vh; border-radius: 16px; background: #000; }
.tt2-bia.lon { width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 46vh; border-radius: 16px; }
.tt2-tam-ngay { margin: 0; font-size: 12px; color: var(--chu-phu); }
.tt2-tam-ds { display: flex; flex-direction: column; }
.tt2-tam-kenh { display: flex; align-items: center; gap: 10px; min-height: 52px; border-top: 1px solid var(--vien); }
.tt2-tam-kenh > b { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; }
.tt2-tam-kenh > span { display: flex; align-items: baseline; gap: 4px; }
.tt2-tam-kenh strong { font-size: 16px; font-weight: 600; }
.tt2-tam-kenh small { font-size: 12px; color: var(--chu-mo); }
.tt2-tam .tt2-mo { flex: none; min-height: 34px; height: 34px; padding: 0 14px; font-size: 12px; color: var(--chu); text-decoration: none; }
.tt2-tam-tong { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding-top: 12px; border-top: 1px solid var(--vien-sang); font-size: 14px; font-weight: 400; color: var(--chu-phu); }
.tt2-tam-tong strong { font-size: 16px; color: var(--chu); }
.tt2-tam-tong small { font-size: 12px; color: var(--chu-mo); }
.tt2-bia i { z-index: 2; }
