/* briefnation — video: rel geser, pemutar, kisi video. */
/* Pattern D — rail (video) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.video { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; min-width: 0; }
.video__thumb { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 9 / 14; background: var(--tint); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video:hover .video__thumb img { transform: scale(1.04); }
.video__badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 6px; border-radius: 4px; background: rgba(0,0,0,.68); color: #fff; font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.video__badge svg { width: 9px; height: 9px; }
.video__title { font-size: .8125rem; font-weight: 600; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.video:hover .video__title { color: var(--red); }
.rail-nav { display: none; gap: 6px; }
.rail-nav button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .15s; }
.rail-nav button:hover { border-color: var(--ink); }
.rail-nav svg { width: 14px; height: 14px; }
@media (min-width: 640px) { .rail { grid-auto-columns: 23%; } }
@media (min-width: 1024px) {
  .rail { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .rail-nav { display: flex; }
}
.band { margin-top: var(--section); padding-bottom: var(--section); background: var(--sand); border-block: 1px solid var(--line); }
.band .rail-nav button { background: #fff; }
.band--flush { margin-top: 24px; padding-block: 28px 36px; }
.vfeature { display: grid; gap: 24px; }
.vfeature__stage { grid-area: stage; display: grid; gap: 14px; justify-items: center; min-width: 0; }
.vfeature__info { grid-area: info; }
.vplayer { position: relative; display: block; width: 260px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--navy-deep); box-shadow: 8px 8px 0 var(--shadow-blue); }
.vplayer img { width: 100%; height: 100%; object-fit: cover; }
.vplayer__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; transition: transform .2s var(--ease); }
.vplayer__play svg { width: 22px; height: 22px; margin-left: 3px; }
.vplayer:hover .vplayer__play { transform: scale(1.08); }
.vfeature__info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.vfeature__title { font-size: 1.25rem; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.vfeature .share a, .vfeature .share button { background: #fff; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 640px) {
  .vfeature { align-items: start; }
  .vfeature__stage { justify-items: start; }
  .vfeature__title { font-size: 1.5rem; }
  .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; }
}
@media (min-width: 1024px) { .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Pemutar tertanam: TikTok 9:16; sematan Instagram butuh lebar minimal 326px dan ruang untuk kepala serta kakinya. */
.vplayer--embed { background: #000; }
.vplayer--instagram { width: 328px; aspect-ratio: 328 / 600; background: #fff; }
.vplayer--tiktok.vplayer--embed, .vplayer--youtube.vplayer--embed { width: 325px; aspect-ratio: 325 / 578; }
/* Halaman satu video: pemutar, baris aksi (bagikan + navigasi), lalu info. Aturan dasar ini harus berada sebelum media query di bawah. */
.vfeature--detail { grid-template-areas: "stage" "actions" "info"; }
.vfeature__actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; width: 100%; max-width: 328px; margin-inline: auto; min-width: 0; }
.vfeature--detail .share a, .vfeature--detail .share button { width: 44px; height: 44px; }
.vfeature--detail .share svg { width: 18px; height: 18px; }
.vnav { display: flex; gap: 8px; }
.vnav__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink); transition: border-color .15s, color .15s; }
.vnav__btn svg { width: 18px; height: 18px; }
a.vnav__btn:hover { border-color: var(--navy); color: var(--navy); }
.vnav__btn.is-disabled { background: transparent; color: var(--faint); opacity: .6; cursor: default; }
.vfeature__desc { display: grid; gap: 10px; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  /* Sampai 899px tetap satu kolom di tengah. */
  .vfeature--detail { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "stage" "actions" "info"; }
  .vfeature--detail .vfeature__stage { justify-items: center; }
}
@media (min-width: 900px) {
  /* Dua kolom di tengah: info di kiri atas, baris aksi di kiri bawah (rata bawah dengan pemutar), pemutar di kanan. */
  .vfeature--detail { grid-template-columns: minmax(0, 340px) auto; grid-template-rows: 1fr auto; grid-template-areas: "info stage" "actions stage"; justify-content: center; gap: 20px 56px; }
  .vfeature--detail .vfeature__title { font-size: 1.375rem; }
  .vfeature__actions { max-width: none; margin: 0; align-self: end; }
}
/* Geser kiri/kanan di layar sentuh: gulir tegak tetap milik peramban, gerak mendatar ditangani skrip. */
.vfeature--detail { touch-action: pan-y; }
/* Video tanpa sampul: ubin navy dengan ikon putar. */
.video__thumb--empty, .vplayer--empty { background: var(--navy); display: grid; place-items: center; color: #fff; }
.video__thumb--empty > svg { width: 28px; height: 28px; opacity: .85; }
/* Arsip video: kisi kartu langsung di bawah judul halaman. */
.cat-top + .section { padding-top: 24px; }
