/* =====================================================
   video.css - halaman Video VIP (langkah 3a, 2026-10-21)
   2026-10-21 (sore): susunan DISELARASKAN ke purwarupa yang disepakati (layar "video"): papan VIP Membership berpin,
   cari + dropdown Semua/FREE/VIP, grid 3 kolom kartu (kartu.css). Nilai papan & cari disalin dari purwarupa.
   Dimuat setelah app.css, app-produk.css (lembar beli & toast), kartu.css.
   ===================================================== */

/* papan VIP: bingkai berpin + isi meniru kartu VIP produksi */
.vipboard { position: relative; margin-bottom: 12px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(125deg, rgba(58,34,112,.5), rgba(92,60,168,.36) 60%, rgba(56,70,160,.5)), #4E318F url("../img/latar-vip-gelap.webp") center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.24); box-shadow: 0 0 0 1px rgba(255,255,255,.018), 0 7px 20px rgba(0,0,0,.39); }
html[data-tema="terang"] .vipboard { background: linear-gradient(125deg, rgba(255,255,255,.28), rgba(255,255,255,.12)), #E9E0FB url("../img/latar-vip-terang.webp") center / cover no-repeat;
  border: 2px solid #fff; box-shadow: var(--z-clay); }
.board-corner-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 34% 32%, #f3e8ff 0%, #a78bfa 55%, #7c3aed 100%); box-shadow: inset 0 0 2px rgba(255,255,255,.7); }
html[data-tema="terang"] .board-corner-dot { box-shadow: 0 0 0 2px #fff; }
.board-corner-dot.tl { top: 9px; left: 9px; } .board-corner-dot.tr { top: 9px; right: 9px; }
.board-corner-dot.bl { bottom: 9px; left: 9px; } .board-corner-dot.br { bottom: 9px; right: 9px; }
.vipboard-in { display: grid; gap: 8px; padding: 14px 12px 13px; } /* sisi halaman zonas69 sedikit lebih lebar dari purwarupa: label keunggulan tetap 1 baris utuh di 390px */
.vip-head { display: flex; align-items: center; gap: 8px; }
.vip-title { font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; letter-spacing: .3px; color: #fff; }
.vip-chip { margin-left: auto; height: 22px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; background: #67E8F9; color: #08404D;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.vip-desc { margin: 0; font-size: 12px; line-height: 1.45; color: #fff; }
.vip-stats { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 3px; padding: 8px 5px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.vip-stats > i { width: 1px; align-self: stretch; background: rgba(255,255,255,.24); }
.vip-stat { display: flex; align-items: center; gap: 4px; min-width: 0; }
.vip-stat .i3d { width: 14px; height: 14px; flex: none; }
.vip-stat > span { display: grid; min-width: 0; }
.vip-stat b { font-size: 10.5px; color: #A5F3FC; letter-spacing: .02em; }
.vip-stat small { font-size: 9px; letter-spacing: -.1px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vip-bottom { display: flex; align-items: center; gap: 8px; }
.vip-join { flex: none; min-height: 44px; padding: 0 16px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; letter-spacing: .05em; color: #08404D; background: linear-gradient(180deg, #E6FCFF, #67E8F9);
  border: 1px solid rgba(255,255,255,.6); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #2A9DB3; -webkit-tap-highlight-color: transparent; }
.vip-join .fi { font-size: 13px; color: #b7791f; }
.vip-join:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #2A9DB3; }
.vip-plat { flex: 1; min-height: 44px; margin: 0; display: flex; align-items: center; padding: 6px 10px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.5);
  font-size: 10.5px; line-height: 1.35; color: #fff; }
html[data-tema="terang"] .vip-title { color: #4F2E94; }
html[data-tema="terang"] .vip-desc { color: #1B1730; }
html[data-tema="terang"] .vip-stats { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.95); }
html[data-tema="terang"] .vip-stats > i { background: rgba(79,46,148,.18); }
html[data-tema="terang"] .vip-stat b { color: #4F2E94; }
html[data-tema="terang"] .vip-stat small { color: #1B1730; }
html[data-tema="terang"] .vip-plat { color: #4A4562; border-color: rgba(79,46,148,.35); }
html[data-tema="terang"] .vip-title, html[data-tema="terang"] .vip-join { font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: .2px; }

/* cari + dropdown */
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 14px; }
.inp { width: 100%; min-height: 39px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(124,92,191,.55); background: #0e0e1c; color: #eeeef5;
  font: inherit; font-size: 12px; }
html[data-tema="terang"] .inp { background: #fff; color: #302343; border: 1px solid rgba(103,68,166,.35); }
.inp::placeholder { color: #7a7a95; }
html[data-tema="terang"] .inp::placeholder { color: #74677f; }
.inp:focus-visible { outline: 2px solid #67e8f9; outline-offset: 1px; }
html[data-tema="terang"] .inp:focus-visible { outline-color: #6744a6; }
.sel-wrap { position: relative; display: block; }
.sel-wrap select { -webkit-appearance: none; appearance: none; width: auto; min-width: 108px; padding: 0 34px 0 14px; font-weight: 700; cursor: pointer; }
.sel-wrap .fi { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 15px; color: #7a7a95; }
html[data-tema="terang"] .sel-wrap .fi { color: #6744a6; }
.vid-empty { grid-column: 1 / -1; }

/* pemutar - 2026-10-23 pemilik: kartu "Premium Player" seperti contoh (kepala logo 69 + judul + tutup, video, kaki).
   Kotak video ikut bentuk video (--ar dari video.js; potrait dibatasi tinggi layar). Tanda air dihapus pemilik. */
.vplay { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(3,2,8,.88); overscroll-behavior: contain; }
.vplay-box { width: 100%; max-width: 760px; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: #15131f; border: 1px solid rgba(144,105,233,.35); box-shadow: 0 18px 50px rgba(0,0,0,.6); font-family: "Plus Jakarta Sans", sans-serif; }
.vplay-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-bottom: 1px solid rgba(144,105,233,.22); }
.vplay-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font: 700 17px "Plus Jakarta Sans", sans-serif;
  color: #fff; background: linear-gradient(135deg, #9069e9, #d946ef); box-shadow: 0 3px 10px rgba(192,38,211,.35); }
.vplay-judul { flex: 1; min-width: 0; }
.vplay-head h2 { margin: 0; font: 700 15.5px/1.25 "Plus Jakarta Sans", sans-serif; letter-spacing: .2px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vplay-sub { margin: 2px 0 0; font-size: 12px; color: #a9a6bb; }
.vplay-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-size: 22px; cursor: pointer; }
.vplay-x:focus-visible, .vplay-full:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.vplay-frame { --ar: 1.7778; position: relative; aspect-ratio: var(--ar); width: min(100%, calc((100vh - 230px) * var(--ar))); width: min(100%, calc((100dvh - 230px) * var(--ar)));
  margin: 0 auto; background: #000; overflow: hidden; }
.vplay-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplay-tag { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 5px 10px; border-radius: 9px; font: 800 11.5px "Plus Jakarta Sans", sans-serif;
  letter-spacing: .4px; color: #fff; background: rgba(20,18,30,.82); border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
.vplay-tag:empty { display: none; }
.vplay-full { position: absolute; z-index: 3; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 11px; border: 1px solid rgba(255,255,255,.3); background: rgba(20,18,30,.82); color: #fff; font: 700 12px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.vplay-full::after { content: ""; position: absolute; inset: -4px -2px; } /* area sentuh 44px */
.vplay-frame.full, .vplay-frame:fullscreen { border-radius: 0; aspect-ratio: auto; max-width: none; }
.vplay-frame.full { position: fixed; inset: 0; z-index: 80; width: 100vw; height: 100vh; height: 100dvh; }
.vplay-frame.full .vplay-tag, .vplay-frame:fullscreen .vplay-tag { display: none; }
.vplay-kaki { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid rgba(144,105,233,.22); }
.vplay-kaki-isi { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vplay-kaki-isi b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #d9c8ff; }
.vplay-kaki-isi span:not(.vplay-dot) { font-size: 12px; color: #a9a6bb; }
.vplay-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #a98de0; box-shadow: none; }
.vplay-chip { flex: none; padding: 7px 12px; border-radius: 12px; font: 800 11.5px "Plus Jakarta Sans", sans-serif; letter-spacing: .4px; color: #d9c8ff;
  border: 1px solid rgba(169,141,224,.55); background: rgba(144,105,233,.12); }
.vplay .msg { margin: 0; padding: 0 14px; color: #fff; }
.vplay .msg:empty { display: none; }
.vplay .msg.err { color: #ff8a8a; padding-bottom: 12px; }
/* mode terang: kartu putih, latar gelap di belakang tetap (fokus ke video) */
/* 2026-10-31 pemilik: pemutar video SELALU gelap di semua tema (aturan mode terang dihapus) */
@media (max-width: 359px) { .vplay { padding: 8px; } .vplay-chip { padding: 6px 9px; font-size: 10.5px; } .vplay-full { padding: 0 10px; } }

/* 2026-10-21 (sore) masukan pemilik: papan VIP lebih ringkas (tinggi ~212px -> ~170px), sudut lebih kecil,
   ikon JOIN NOW 3D (bukan ikon garis). Isi & urutan tetap seperti purwarupa. */
.vipboard { border-radius: 16px; }
.vipboard-in { gap: 6px; padding: 10px 12px; }
.vip-head .i3d { width: 20px; height: 20px; }
.vip-title { font-size: 15px; }
.vip-chip { height: 20px; padding: 0 8px; font-size: 11px; }
.vip-desc { font-size: 11.5px; line-height: 1.4; }
.vip-stats { padding: 6px 5px; border-radius: 11px; }
.vip-join { min-height: 38px; padding: 0 12px; border-radius: 11px; font-size: 13px; gap: 5px; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #2A9DB3; }
.vip-join .i3d { width: 18px; height: 18px; flex: none; }
.vip-plat { min-height: 38px; padding: 4px 8px; border-radius: 11px; font-size: 10px; line-height: 1.3; }
.board-corner-dot.tl, .board-corner-dot.tr { top: 6px; } .board-corner-dot.bl, .board-corner-dot.br { bottom: 6px; }
.board-corner-dot.tl, .board-corner-dot.bl { left: 6px; } .board-corner-dot.tr, .board-corner-dot.br { right: 6px; }

/* 2026-10-21 malam pemilik: papan VIP (mode gelap) disamakan dengan kartu promo babyflo69.biz.id/asupan69
   (nilai dari style.css-nya): gambar banner slide ketiga diredupkan + lapisan hitam miring, tepi ungu tipis,
   kotak keunggulan bertepi ungu, tombol JOIN hitam, kotak garis putus-putus, titik sudut toska.
   Ukuran huruf terkecil 8px (asupan69 memakai 7px - terlalu kecil dibaca di HP). Mode terang tetap pastel. */
html:not([data-tema="terang"]) .vipboard { border-radius: 14px; border: 1px solid rgba(144,105,233,.3); box-shadow: none; background: #09090B; }
html:not([data-tema="terang"]) .vipboard::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../img/banner-vip.jpg") center / cover no-repeat; filter: brightness(.6) saturate(1.15); }
html:not([data-tema="terang"]) .vipboard::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(165deg, rgba(9,6,9,.85) 0%, rgba(9,6,9,.62) 45%, rgba(9,6,9,.88) 100%); }
html:not([data-tema="terang"]) .vipboard-in { position: relative; z-index: 2; gap: 5px; padding: 10px; }
html:not([data-tema="terang"]) .board-corner-dot { display: none; } /* 2026-10-21 malam pemilik: titik sudut dihapus */
html:not([data-tema="terang"]) .vip-head .i3d { width: 17px; height: 17px; }
html:not([data-tema="terang"]) .vip-title { font-size: 13px; }
html:not([data-tema="terang"]) .vip-chip { height: 18px; padding: 0 7px; font-size: 10px; border-radius: 5px; color: #fff; background: linear-gradient(135deg, #7c5cbf 0%, #3a2a66 55%, #0c0c0e 100%); border: 1px solid rgba(144,105,233,.55); } /* lebih kotak, ungu->hitam */
html:not([data-tema="terang"]) .vip-desc { font-size: 10px; font-weight: 600; line-height: 1.4; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.45);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html:not([data-tema="terang"]) .vip-stats { padding: 6px 5px; gap: 1px; border-radius: 10px; background: rgba(144,105,233,.06); border: 1px solid rgba(144,105,233,.3); }
html:not([data-tema="terang"]) .vip-stats > i { align-self: center; height: 20px; background: rgba(255,255,255,.18); }
html:not([data-tema="terang"]) .vip-stat .i3d { width: 13px; height: 13px; }
html:not([data-tema="terang"]) .vip-stat b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 10.5px; letter-spacing: .3px; color: #99f9ff; }
html:not([data-tema="terang"]) .vip-stat small { font-size: 8.5px; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.72); } /* tanpa huruf besar: "Keuntungan Lainnya" muat utuh */
html:not([data-tema="terang"]) .vip-bottom { align-items: stretch; gap: 6px; }
html:not([data-tema="terang"]) .vip-join { min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #2b2b2b, #0a0a0a); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 3px 10px rgba(0,0,0,.5); }
html:not([data-tema="terang"]) .vip-join:active { transform: scale(.98); box-shadow: 0 1px 4px rgba(0,0,0,.5); }
html:not([data-tema="terang"]) .vip-join .i3d { width: 15px; height: 15px; }
html:not([data-tema="terang"]) .vip-plat { min-height: 36px; padding: 6px 10px; border-radius: 9px; border: 1.5px dashed rgba(255,255,255,.35); background: rgba(255,255,255,.03);
  font-size: 9px; font-weight: 600; line-height: 1.5; color: rgba(255,255,255,.9); }
/* kolom cari & saringan: hitam netral (bukan biru dongker) */
html:not([data-tema="terang"]) .inp { background: #111113; border-color: rgba(144,105,233,.3); }
html:not([data-tema="terang"]) .inp::placeholder { color: #8a8a93; }

/* 2026-10-31 pemilik: pemutar lebih rapi - latar kotak hampir hitam (sisi video potret tidak tampak seperti bingkai tebal),
   judul & keterangan 1 baris (dipotong ...), kaki tidak turun ke bawah */
.vplay { padding: 8px; }
.vplay-box { background: #0b0a11; border-color: rgba(144,105,233,.28); border-radius: 18px; }
.vplay-head { padding: 10px 10px 10px 12px; gap: 10px; }
.vplay-logo { width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
.vplay-head h2 { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vplay-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vplay-x { border-radius: 12px; font-size: 20px; } /* tetap 44px (area sentuh minimum) */
.vplay-kaki { padding: 10px 12px; gap: 10px; }
.vplay-kaki-isi b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.vplay-kaki-isi b .vplay-dot { display: inline-block; vertical-align: middle; margin-right: 7px; }
.vplay-kaki-isi span:not(.vplay-dot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vplay-chip { padding: 6px 10px; font-size: 11px; }

/* 2026-10-31 sore pemilik: ikon pin 69 (gambar), Layar penuh di kiri atas video,
   lencana FREE/VIP di kaki (pengganti PLAYER HD) */
.vplay-logo { display: block; width: 36px; height: 36px; border-radius: 10px; background: none; box-shadow: 0 3px 10px rgba(192,38,211,.3); object-fit: cover; }
.vplay-full { right: auto; left: 10px; }
.vplay-chip:empty { display: none; }
/* 2026-10-31 pemilik: judul di KARTU video maks 3 baris & sedikit lebih kecil (judul di pemutar tetap 1 baris) */
#vidList .tname > span { -webkit-line-clamp: 3; }
#vidList .tname { font-size: 11px; } /* 2026-11-01: sama di kedua tema */

/* 2026-11-03 promo Ketua baru B: hadiah 1 Video VIP gratis untuk akun baru */
.vid-hadiah { display: grid; gap: 2px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45;
  color: #6b4300; background: linear-gradient(135deg, #fff6d6, #ffe59a); border: 1px solid #f5d06b; }
.vid-hadiah[hidden] { display: none; }
.vid-hadiah b { font-size: 13px; font-weight: 800; }
html:not([data-tema="terang"]) .vid-hadiah { color: #ffe08a; background: rgba(245, 197, 66, .12); border-color: rgba(245, 197, 66, .4); }
.sheet-hadiah { display: flex; width: 100%; margin: 0 0 10px; color: #3d2600 !important; border-color: #f5d06b !important;
  background: linear-gradient(180deg, #ffe59a, #f5c542) !important; box-shadow: 0 3px 0 #b8860b !important; }
.sheet-hadiah[hidden] { display: none; }
/* 2026-11-04 link dari kabar Telegram (video.html?v=<id>): kartu video itu disorot sebentar */
.pcard.sorot { outline: 2px solid #67e8f9; outline-offset: 2px; }
html[data-tema="terang"] .pcard.sorot { outline-color: #6744a6; }
/* 2026-11-05 pemilik: tombol naik kiri bawah, di atas menu bawah; sejajar tepi kiri menu (lebar menu maks 600px di tengah) */
.vid-naik { position: fixed; z-index: 44; left: max(14px, calc(50% - 296px)); bottom: calc(var(--z-nav-h) + 22px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: #9069c9; box-shadow: 0 6px 16px rgba(0,0,0,.35); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.vid-naik[hidden] { display: none; }
.vid-naik:active { transform: scale(.94); }
.vid-naik:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }
html[data-tema="terang"] .vid-naik { background: #6744a6; box-shadow: 0 6px 16px rgba(103,68,166,.3); }
html[data-tema="terang"] .vid-naik:focus-visible { outline-color: #6744a6; }
/* 2026-11-05 pemilik (revisi ke-2): judul halaman Video + tombol naik magenta (panah lebih tebal di video.html) */
.vid-judul { margin: 2px 2px 12px; }
.vid-judul h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; letter-spacing: .4px; }
.vid-judul h2 .i3d { width: 24px; height: 24px; }
.vid-judul p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--z-text2); }
.vid-judul a { color: var(--z-accent); font-weight: 700; }
.vid-naik, html[data-tema="terang"] .vid-naik { background: #e11d8a; box-shadow: 0 6px 16px rgba(225,29,138,.4); }
