/* [23/10] Tay to video — danh sách (trạm "Đối thủ") + hồ sơ chiến lược. Màu qua token (wow-mau-token-mot-cua). Không cuộn ngang: lưới co cột tên. */
.tv-ds { display: grid; gap: 2px; container-type: inline-size; }
.tv-dong { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px 110px 44px; gap: 12px; align-items: center; padding: 8px 6px;
  background: none; border: 0; border-bottom: 1px solid var(--wow-vien-nhat); color: var(--wow-chu); text-align: left; font: inherit; cursor: pointer; }
button.tv-dong:hover { filter: brightness(1.25); }
.tv-dau { cursor: default; padding-bottom: 4px; font: 500 11px/1.2 var(--wow-font-chu); color: var(--wow-chu-3); text-transform: uppercase; letter-spacing: .04em; }
.tv-dau span:nth-child(n+3) { text-align: right; }
.tv-anh { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--wow-mat-hop); }
.tv-anh img, .tv-the-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-ten { display: grid; min-width: 0; }
.tv-ten b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-ten small { color: var(--wow-chu-3); font-size: 12px; }
.tv-so { font: 400 18px/1 var(--wow-font-so); text-align: right; }
.tv-top { font: 400 13px/1 var(--wow-font-so); color: var(--wow-chu-2); text-align: right; }
.tv-duong { width: 110px; height: 28px; overflow: visible; }
.tv-duong polyline { fill: none; stroke: var(--wow-chu-3); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tv-duong.tv-len polyline { stroke: var(--wow-cam-sang); }
.tv-duong.tv-xuong polyline { stroke: var(--wow-xau); }
/* hẹp ⇒ hai tầng: tên + số / đường + top (không bỏ cột nào) */
@container (max-width: 520px) {
  .tv-dong { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "anh ten so" "anh duong top"; row-gap: 4px; }
  .tv-dong > .tv-anh { grid-area: anh; } .tv-dong > .tv-ten { grid-area: ten; } .tv-dong > .tv-so { grid-area: so; }
  .tv-dong > .tv-duong { grid-area: duong; width: 100%; max-width: 160px; height: 20px; } .tv-dong > .tv-top { grid-area: top; }
  .tv-dau > :nth-child(n+3) { display: none; }
}

.tv-hs { display: grid; gap: 18px; container-type: inline-size; }
.tv-so-dau { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.tv-so-dau div { display: grid; gap: 4px; }
.tv-so-dau b { font-size: 28px; }
.tv-so-dau span { color: var(--wow-chu-3); font-size: 12px; }
.tv-nhan-xet { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--wow-chu-2); }
.tv-phan { display: grid; gap: 8px; }
.tv-phan h3 { margin: 0; font: 500 15px/1.3 var(--wow-font-chu); color: var(--wow-chu); }
.tv-phan h3 small { margin-left: 8px; font-weight: 400; font-size: 12px; color: var(--wow-chu-3); }
.tv-pb { display: grid; gap: 4px; }
.tv-pb-dong { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 2fr) 40px; gap: 10px; align-items: center; font-size: 13px; }
.tv-pb-dong span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wow-chu-2); }
.tv-pb-dong i { display: block; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--wow-cam) var(--pt), var(--wow-vien-nhat) var(--pt)); }
.tv-pb-dong b { font: 400 12px/1 var(--wow-font-so); text-align: right; }
.tv-mau { margin: 0; padding: 6px 10px; border-left: 2px solid var(--wow-cam-dam); background: var(--wow-mat-hop); color: var(--wow-chu-2);
  font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.tv-video { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tv-the { display: grid; gap: 6px; align-content: start; font-size: 12px; color: var(--wow-chu-2); }
.tv-the p { margin: 0; overflow-wrap: anywhere; }
.tv-the-anh { aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: var(--wow-mat-hop); }
/* hẹp ⇒ nhãn tỉ trọng một dòng riêng, thanh + % dòng dưới (tên ngành/khuôn không bị cắt). Đặt CUỐI tệp: cùng độ ưu tiên với luật gốc ⇒ luật sau thắng */
@container (max-width: 520px) {
  .tv-pb-dong { grid-template-columns: minmax(0, 1fr) 40px; }
  .tv-pb-dong span { grid-column: 1 / -1; white-space: normal; }
}
