/* ===== Thẻ clickable trong media.html ===== */
#mediaGrid .blog-full-card { position: relative; }
#mediaGrid .blog-fb-embed iframe { pointer-events: none; } /* click xuyên qua iframe để vào trang chi tiết */
.card-link-overlay { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card-link-overlay:focus-visible { outline: 2px solid var(--green-main); outline-offset: -2px; }
.video-detail-link { display: inline-flex; margin-top: 1rem; font-size: .85rem; font-weight: 500; color: var(--green-main); transition: transform .2s; }
#mediaGrid .blog-full-card:hover .video-detail-link { transform: translateX(4px); }

/* ===== Trang chi tiết video ===== */
[hidden] { display: none !important; }
.vd-main { max-width: 1040px; margin: 0 auto; padding: calc(var(--space-xl) + 3rem) var(--space-md) var(--space-xl); }
.vd-back { display: inline-block; font-size: .85rem; color: var(--text-soft); margin-bottom: 1.25rem; }
.vd-back:hover { color: var(--green-main); }

/* Layout: desktop 2 cột (video ghim bên trái), mobile 1 cột (video ghim trên cùng) */
.vd-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.vd-player-col { position: sticky; top: calc(var(--vd-top, 68px) + 16px); }
.vd-player { position: relative; width: 100%; height: min(600px, calc(100svh - var(--vd-top, 68px) - 40px)); border-radius: 16px; overflow: hidden; background: #000; }
.vd-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vd-player iframe { display: block; border: none; margin: 0 auto; max-width: 100%; }
.vd-unmute {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(0,0,0,.7); color: #fff; font-size: .8rem; cursor: pointer;
}

.vd-kicker { font-size: .78rem; letter-spacing: .08em; color: var(--text-muted); }
.vd-title { margin-top: .4rem; font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 500; line-height: 1.2; color: var(--green-deep); }
.vd-intro { margin-top: .75rem; color: var(--text-soft); line-height: 1.7; }
.vd-hr { margin: 1.75rem 0; border: 0; border-top: 1px solid var(--green-mist); }

.vd-block { margin-top: 2rem; }
.vd-block h2, .vd-solution h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; color: var(--green-deep); margin-bottom: .6rem; }
.vd-block > p { color: var(--text-mid); line-height: 1.7; }
.vd-points { list-style: none; padding: 0; margin-top: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.vd-points li { display: flex; gap: .7rem; color: var(--text-mid); line-height: 1.6; }
.vd-points li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: .55rem; border-radius: 50%; background: var(--green-main); }

.vd-solution { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: 16px; background: var(--green-foam); }
.vd-solution h2 { font-size: 1.2rem; }
.vd-solution p { color: var(--text-mid); line-height: 1.7; }

.vd-pack-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; border: 1px solid var(--green-mist); border-radius: 16px; background: var(--warm-white); }
.vd-pack-kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.vd-pack-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--green-deep); }
.vd-pack-card p { color: var(--text-soft); font-size: .9rem; line-height: 1.6; margin-bottom: .4rem; }
.vd-pack-card .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .vd-main { padding: calc(var(--space-lg) + 3.5rem) 5vw var(--space-lg); }
  .vd-layout { display: block; }
  /* Video ghim sát dưới navbar, full bề ngang như YouTube */
  .vd-player-col { top: var(--vd-top, 60px); z-index: 40; margin: 0 -5vw 1.25rem; background: #000; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  .vd-player { height: 42svh; min-height: 220px; border-radius: 0; }
}