/* 04/11/2026: Khung video chính trang chủ. Phụ đề kiểu Netflix trên dải tối ngay dưới hình (không đè hình),
   thanh tua/tốc độ thu thấp, hàng chương chọn video ngay trong khung. */
.vtq-sec { padding: 8px 0 26px; position: relative; z-index: 1; scroll-margin-top: 110px; }
.vtq-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.vtq-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 0 0 12px; text-align: center; }
.vtq-head b { font-size: 21px; color: #0F1F44; }
.vtq-head span { font-size: 16px; font-weight: 700; color: #1D4ED8; }
.vtq-stage { background: #0A0F1E; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 36px rgba(15, 31, 68, .18); border: 2px solid #C9D7F5; }
.vtq-box { position: relative; background: #000; }
.vtq-box video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; }
.vtq-box video::cue { font-size: 70%; line-height: 1.35; color: #fff; background: rgba(0, 0, 0, .62); text-shadow: 0 1px 2px #000; }
.vtq-sound { position: absolute; top: 12px; right: 12px; z-index: 2; border: 0; border-radius: 999px; padding: 8px 15px; background: #93C5FD; color: #0B1B3F; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: vtq-pulse 1.8s ease-in-out infinite; }
.vtq-sound[hidden] { display: none; }
@keyframes vtq-pulse { 50% { transform: scale(1.06); } }

/* Thanh tua/tốc độ dùng chung (video-tools.js chèn ngay sau thẻ video): thu thấp, liền khối với khung */
.vtq-stage .rqx-video-bar { max-width: none; margin: 0; padding: 4px 10px; gap: 6px; border: 0; border-radius: 0; background: #0A0F1E; box-shadow: none; flex-wrap: nowrap; font-size: 13px; }
.vtq-stage .rqx-video-bar .rqx-vgrp { gap: 4px; flex-wrap: nowrap; }
.vtq-stage .rqx-video-bar button { height: 28px; min-height: 28px; min-width: 34px; padding: 3px 9px; border-radius: 7px; font-size: 12.5px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.vtq-stage .rqx-video-bar button.on, .vtq-stage .rqx-video-bar button.active { background: #93C5FD; border-color: #93C5FD; color: #0B1B3F; box-shadow: none; }
.vtq-stage .rqx-video-bar .rqx-vlbl { font-size: 12.5px; }
.vtq-stage .rqx-video-bar .rqx-vhint { display: none; }

/* Phụ đề kiểu Netflix: chữ nhỏ, Việt trắng, Trung vàng nhạt, viền bóng cho dễ đọc */
.vtq-sub { background: #0A0F1E; padding: 6px 18px 8px; text-align: center; min-height: 54px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.vtq-vi, .vtq-zh { margin: 0 auto; max-width: none; font-size: 15px; line-height: 1.4; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.vtq-vi { color: #FFFFFF; }
.vtq-zh { color: #FDE68A; margin-top: 1px; }

/* Hàng chương: 4 video trong cùng khung */
.vtq-chaps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 10px 10px; background: #0A0F1E; border-top: 1px solid rgba(255, 255, 255, .08); }
.vtq-chap { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 6px 6px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #E2E8F0; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.25; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtq-chap small { font-size: 11.5px; font-weight: 600; color: #A5B4CF; }
.vtq-chap:hover { background: rgba(255, 255, 255, .13); }
.vtq-chap.on { background: #1D4ED8; border-color: #93C5FD; color: #fff; }
.vtq-chap.on small { color: #FDE68A; }
.vtq-chap:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }

@media (max-width: 640px) {
  .vtq-wrap { padding: 0 10px; }
  .vtq-head b { font-size: 18px; } .vtq-head span { font-size: 14.5px; }
  .vtq-stage { border-radius: 14px; }
  .vtq-stage .rqx-video-bar { padding: 4px 8px; }
  .vtq-stage .rqx-video-bar .rqx-vgrp-seek button { height: 32px; min-height: 32px; font-size: 13px; }
  .vtq-stage .rqx-rate-compact { font-size: 12px; color: #CBD5E1; }
  .vtq-stage .rqx-rate-compact select { min-height: 32px; height: 32px; font-size: 14px; }
  .vtq-sub { padding: 5px 10px 7px; min-height: 48px; }
  .vtq-vi, .vtq-zh { font-size: 13.5px; }
  .vtq-chaps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 8px 8px; }
  .vtq-chap { font-size: 13px; padding: 5px 4px; }
  .vtq-chaps { gap: 5px; }
  .vtq-sound { top: 8px; right: 8px; padding: 6px 11px; font-size: 13px; }
}
/* Điện thoại xoay ngang (không bật toàn màn hình): video vừa chiều cao màn hình */
@media (orientation: landscape) and (max-height: 520px) {
  .vtq-box video { width: auto; max-width: 100%; height: calc(100vh - 80px); height: calc(100dvh - 80px); margin: 0 auto; }
  .vtq-sub { min-height: 0; padding: 4px 12px 6px; }
  .vtq-vi, .vtq-zh { font-size: 13px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) { .vtq-sound { animation: none; } }

/* ===== 04/11/2026: RÀ SOÁT MÀU - tối đa 3 màu/trang (trắng-xám, xanh dương #0B6CF3, đỏ nhấn) ===== */
html body .vtq-zh, html body .vtq-chap.on small { color: #E7F0FE !important; }
