/* ==========================================
   VIDEO.CSS
   ========================================== */

.vd-hero {
  background: var(--bg-soft);
  padding: 72px 0 56px;
  text-align: center;
}
.vd-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px;
}
.vd-breadcrumb a { color: var(--ink-soft); }
.vd-breadcrumb a:hover { color: var(--primary); }
.vd-breadcrumb svg { width: 13px; height: 13px; }
.vd-breadcrumb .current { color: var(--ink); font-weight: 600; }
.vd-hero-body h1 {
  font-size: 3rem; font-weight: 800;
  line-height: 1.1; margin: 0 0 16px; color: var(--ink);
}
.vd-hero-body h1 .red { color: var(--primary); }
.vd-hero-body p {
  font-size: 1rem; color: var(--ink-soft);
  line-height: 1.75; margin: 0 auto; max-width: 560px;
}

/* ── Filter ── */
.vd-main { padding: 56px 0 80px; }
.vd-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px; justify-content: center;
}
.vd-filter-btn {
  padding: 8px 24px; border-radius: 24px;
  border: 1.5px solid var(--border);
  background: #fff; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.vd-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.vd-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Grid ── */
.vd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vd-item {
  border-radius: 12px; overflow: hidden;
  background: #fff; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.vd-item:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }

.vd-thumb {
  position: relative; aspect-ratio: 16/9;
  background: #111; overflow: hidden;
}
.vd-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .35s;
}
.vd-item:hover .vd-thumb img { transform: scale(1.05); }
.vd-thumb-placeholder { width: 100%; height: 100%; background: #1a1a2e; }

.vd-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  transition: background .2s;
}
.vd-item:hover .vd-play-btn { background: rgba(0,0,0,.5); }
.vd-play-btn svg {
  width: 52px; height: 52px;
  color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .2s;
}
.vd-item:hover .vd-play-btn svg { transform: scale(1.1); }

.vd-item-kat {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  background: var(--primary); border-radius: 20px;
  padding: 2px 10px;
}

.vd-item-info {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.vd-item-judul { font-size: 0.92rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.vd-item-tahun { font-size: 0.78rem; color: var(--ink-soft); }

/* ── Empty state ── */
.vd-empty {
  text-align: center; padding: 80px 0; color: var(--ink-soft);
}
.vd-empty svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: .4; }
.vd-empty p { font-size: 1rem; }

/* ── Modal ── */
.vd-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.vd-backdrop.active { opacity: 1; pointer-events: all; }

.vd-modal {
  position: fixed; inset: 0;
  z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.vd-modal.active { opacity: 1; pointer-events: all; }

.vd-modal-content {
  width: 90%; max-width: 900px;
  display: flex; flex-direction: column; gap: 16px;
}
.vd-player-wrap {
  position: relative; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden;
  background: #000;
}
.vd-player-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.vd-modal-info {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.vd-modal-judul { font-size: 1rem; font-weight: 700; color: #fff; }
.vd-modal-tahun { font-size: 0.85rem; color: rgba(255,255,255,.6); }

.vd-modal-close {
  position: fixed; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 1002;
}
.vd-modal-close:hover { background: rgba(255,255,255,.3); }
.vd-modal-close svg { width: 20px; height: 20px; stroke: #fff; }

/* ── Responsive ── */
@media (max-width: 1100px) { .vd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .vd-grid { grid-template-columns: 1fr; } }
@media (max-width: 991px)  { .vd-hero-body h1 { font-size: 2.2rem; } }
@media (max-width: 480px)  { .vd-hero-body h1 { font-size: 1.8rem; } }
