/* Base styles */
.otb-overlay{position:fixed;inset:0;z-index:999999;background:#0b0f14;color:#e7eef7;font-family:system-ui,Segoe UI,Roboto,Arial}
.otb-loader{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:inherit}
.otb-spinner{width:44px;height:44px;border-radius:50%;border:4px solid rgba(255,255,255,.2);border-top-color:#fff;animation:otb-spin 1s linear infinite}
@keyframes otb-spin{to{transform:rotate(360deg)}}
.hidden{display:none!important}
.otb-lp{position:absolute;inset:0;display:flex;flex-direction:column}
.otb-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.otb-brand{font-size:18px;font-weight:800;letter-spacing:.3px}
.otb-nav a{color:#c8e0ff;text-decoration:none;margin-left:14px}
.otb-nav a:hover{text-decoration:underline}
.otb-main{flex:1;overflow:auto;padding:22px 16px}
.otb-cse{max-width:980px;margin:0 auto;border-radius:16px;padding:16px 18px}
/* Kurangi opacity seluruh kontrol CSE */
.otb-cse .gsc-control-cse {
  opacity: .0 !important; /* hati-hati: teks juga jadi transparan */
}

.gcse-searchresults-only{position:relative; min-height:60px; opacity: 0.1;}
/* Human panel absolute; shown only after results exist */
/* FULLSCREEN overlay putih semi-transparan */
/* Overlay fullscreen (100vw x 100vh) putih semi-transparan */
.otb-human{
  position: fixed !important;
  inset: 0 !important;            /* top/right/bottom/left = 0 */
  z-index: 999999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(3px);      /* opsional */
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Kotak gelap di tengah untuk isi checkbox + text */
.otb-human-box{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  max-width: min(560px, 92vw);
}

/* Teks countdown */
#otb-count{ font-size:14px; margin-right:8px; white-space:nowrap; }

/* Checkbox + label rapi di dalam box */
#otb-check{ display:flex; align-items:center; gap:8px; }
#otb-check.hidden{ display:none; }
#otb-human-check{ transform: scale(1.15); }

/* Fade-in halus saat overlay muncul (opsional) */
.otb-human{ opacity:0; transition: opacity .2s ease; }
.otb-human:not(.hidden){ opacity:1; }


.otb-check input{transform:scale(1.2)}
.otb-btn{padding:10px 14px;border-radius:12px;border:2px solid currentColor;background:transparent;color:inherit;cursor:not-allowed;opacity:.7}
.otb-btn.enabled{cursor:pointer;opacity:1}
.otb-count{font-size:13px;opacity:.9}
.otb-footer{padding:14px 20px;text-align:center;font-size:13px;opacity:.9;border-top:1px solid rgba(255,255,255,.08)}
.otb-debug{margin:0 auto 10px;max-width:980px;background:#111826;border:1px dashed #2b3b57;border-radius:12px;padding:8px 12px;color:#c8e0ff;font-size:13px;overflow:auto}

/* ===== Layout container ===== */
.otb-video-gallery{
  margin-top:20px;
  display:block;
  max-width:920px; /* biar konten nggak kepanjangan */
  margin-left:auto; margin-right:auto;
}

/* ===== Section headings ===== */
.otb-sec-title{
  margin:0 0 10px 2px;
  font-size:18px;
  font-weight:700;
}

/* ===== Sticky (full width) ===== */
.otb-sticky-video{ margin-bottom:18px; }
.otb-sticky-cover{
  position:relative;
  width:100%;
  aspect-ratio:16/9;             /* full-width 16:9 */
  border-radius:14px;
  overflow:hidden;
  background:#0d1116;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.otb-sticky-img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.otb-sticky-meta{
  position:absolute; left:0; right:0; bottom:0;
  display:flex; align-items:center; gap:12px;
  justify-content:space-between;
  padding:10px 12px;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15) 55%, transparent);
  color:#fff;
}
.otb-sticky-meta .views,.otb-sticky-meta .rating{
  font-size:13px; opacity:.95;
}
.otb-sticky-meta .icons{ display:flex; gap:10px; }
.icon-btn{
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  padding:6px 8px; border-radius:10px; cursor:pointer;
}

/* ===== Grid 2 kolom ===== */
.otb-video-list{ margin-top:6px; }
.otb-video-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}

/* Card */
.otb-video-card{
  display:grid;
  grid-template-columns:140px 1fr;   /* thumb + meta */
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}
.otb-thumb{
  width:100%; max-width:140px; aspect-ratio:16/9;
  overflow:hidden; border-radius:10px; background:#0d1116;
}
.otb-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.otb-card-title{
  margin:0 0 4px 0; font-size:15px; line-height:1.3;
}
.otb-card-sub{ font-size:12px; opacity:.8; }

/* ===== Responsive ===== */
@media (max-width:720px){
  .otb-video-card{ grid-template-columns:120px 1fr; }
  .otb-thumb{ max-width:120px; }
}
@media (max-width:520px){
  /* tetap 2 kolom tapi lebih rapat */
  .otb-video-grid{ gap:10px; }
  .otb-video-card{ grid-template-columns:110px 1fr; padding:8px; }
  .otb-thumb{ max-width:110px; border-radius:8px; }
  .otb-card-title{ font-size:14px; }
}
@media (max-width:420px){
  /* fallback 1 kolom kalau layar sangat kecil */
  .otb-video-grid{ grid-template-columns:1fr; }
  .otb-video-card{ grid-template-columns:140px 1fr; }
}
