/* =========================================================
   VIDEO (VD)
   - 5 kotak 1 baris (desktop)
   - Tidak geser kanan walau section pakai class "fw"
   - Jika video berada DI DALAM .home-right => NON-breakout (100%)
   - Jika video berada DI LUAR layout kolom => breakout full width
   File: assets/css/video/video.css
   ========================================================= */

:root{
  --vd-gutter: clamp(14px, 2.2vw, 32px);
  --vd-radius: 18px;
  --vd-border: rgba(15, 23, 42, .06);
  --vd-shadow: 0 10px 24px rgba(16,24,40,.08);
}

/* ========== DEFAULT SECTION ========== */
.vd-wrap{
  width: 100%;
  padding: 18px 0 8px;
  margin: 0;
}

/* BREAKOUT FULL WIDTH (dipakai bila section diletakkan di luar kolom) */
.vd-wrap.fw{
  width: 100vw;
  margin-left: calc(50% - 50vw + (100vw - 100%)/2);
  margin-right: calc(50% - 50vw + (100vw - 100%)/2);
  overflow-x: clip;
}

/* ✅ PENTING: kalau video berada di kolom kanan, JANGAN breakout */
.home-right .vd-wrap.fw{
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}

/* ========== INNER ========== */
.vd-inner{
  width: 100%;
  margin: 0;
  padding: 0 var(--vd-gutter);
}

/* jika di home-right, padding mengikuti kolom (biar rapi dan tidak “maju”) */
.home-right .vd-inner{
  padding: 0;
}

/* ========== HEAD ========== */
.vd-head{
  margin-bottom: 14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}

.vd-title{
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #071f44;
}

.vd-sub{
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 13px;
}

/* opsional tombol admin */
.vd-admin{
  text-decoration:none;
  font-weight: 700;
  font-size: 13px;
  color: #0b2a57;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15,60,130,.06);
  border: 1px solid rgba(15,60,130,.14);
}
.vd-admin:hover{ background: rgba(15,60,130,.10); }

.vd-empty{
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(15,60,130,.22);
  background: rgba(15,60,130,.04);
  color: #0b2a57;
}

/* ========== GRID: 5 SEJAJAR ========== */
.vd-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* ✅ 5 kotak 1 baris */
  gap: 14px;
  margin-top: 14px;
}

/* ========== CARD ========== */
.vd-card{
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--vd-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--vd-shadow);
  border: 1px solid var(--vd-border);
  transform: translateY(0);
  transition: transform .14s ease, box-shadow .14s ease;
}

.vd-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16,24,40,.12);
}

.vd-thumb{
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(7,31,68,.85), rgba(42,125,225,.75));
}

.vd-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay teks */
.vd-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.18), transparent 70%);
}

.vd-name{
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.vd-desc{
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.35;
}

/* tombol play */
.vd-play{
  position: absolute;
  left: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px){
  .vd-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px){
  .vd-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vd-title{ font-size: 24px; }
}
@media (max-width: 860px){
  .vd-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-title{ font-size: 22px; }
}
@media (max-width: 560px){
  .vd-grid{ grid-template-columns: 1fr; }
  .vd-title{ font-size: 20px; }
}
