/* ===========================================================
   TIN VẮN TỪ TIÊN DU — hàng video dọc + lightbox (trang chủ)
   =========================================================== */
.video-news { background: var(--color-near-black); color: var(--color-white); }
.video-news[hidden] { display: none; }
.video-news .section-title { color: var(--color-white); }
.vn-sub {
  margin: -24px 0 32px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}
.vn-wrap { position: relative; }

/* Hàng ngang */
.vn-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--container-pad);
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vn-track::-webkit-scrollbar { display: none; }

.vn-card {
  position: relative;
  flex: 0 0 clamp(150px, 42vw, 240px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1c1c1c;
  scroll-snap-align: start;
  display: block;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vn-card:hover, .vn-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 0 2px var(--color-primary);
  outline: none;
}
.vn-card > img, .vn-card > video, .vn-noimg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.vn-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%);
}
.vn-play {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(254,205,39,0.95);
  color: var(--color-near-black);
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform .2s ease;
}
.vn-card:hover .vn-play { transform: scale(1.1); }
.vn-dur {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 8px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.65);
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.vn-title {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  font-size: 14px; line-height: 1.35; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Nút cuộn (desktop) */
.vn-scroll {
  position: absolute; top: 50%; z-index: 3;
  width: 44px; height: 44px; margin-top: -28px;
  border: 0; border-radius: 50%;
  background: var(--color-primary); color: var(--color-near-black);
  font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  display: none;
}
.vn-scroll:disabled { opacity: 0; pointer-events: none; }
.vn-scroll-prev { left: -14px; }
.vn-scroll-next { right: -14px; }
@media (hover: hover) and (min-width: 861px) {
  .vn-scroll { display: block; }
  .video-news.vn-no-scroll .vn-scroll { display: none; }
}

/* ---------- Lightbox: nền tối 80% ---------- */
html.vn-lock, html.vn-lock body { overflow: hidden; }
.vn-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8);
  animation: vnFade .18s ease;
}
.vn-lightbox[hidden] { display: none; }
@keyframes vnFade { from { opacity: 0 } to { opacity: 1 } }
.vn-lb-stage {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 100%;
}
.vn-lb-player {
  height: min(82vh, 780px);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 32px);
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.vn-lb-player video, .vn-lb-player iframe {
  width: 100%; height: 100%; border: 0; display: block; background: #000; object-fit: contain;
}
.vn-lb-caption { max-width: min(92vw, 520px); color: #fff; text-align: center; }
.vn-lb-title { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vn-lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.15); color: #fff;
  font-size: 20px; cursor: pointer; z-index: 2;
}
.vn-lb-close:hover { background: var(--color-primary); color: var(--color-near-black); }
.vn-lb-nav {
  width: 48px; height: 48px; flex: 0 0 auto; margin: 0 12px;
  border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.15); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.vn-lb-nav:hover { background: var(--color-primary); color: var(--color-near-black); }
@media (max-width: 860px) {
  .vn-lb-nav { position: absolute; top: 50%; margin: -24px 8px 0; z-index: 2; background: rgba(0,0,0,0.5); width: 40px; height: 40px; font-size: 26px; }
  .vn-lb-prev { left: 0; }
  .vn-lb-next { right: 0; }
  .vn-lb-player { height: min(78vh, 720px); }
  .vn-sub { margin-top: -16px; }
}
