 :root{--primary:#2563eb;--bg:#f8fafc;--text:#1e293b;--card:#fff}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}header{background:var(--primary);color:#fff;padding:1.5rem;text-align:center}header h1{margin-bottom:1rem}.filter-nav{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap}.filter-btn{background:rgba(255,255,255,.2);color:#fff;border:0;padding:.5rem 1rem;border-radius:20px;cursor:pointer;font-weight:600}.filter-btn.active,.filter-btn:hover{background:#fff;color:var(--primary)}.back-btn{color:#fff;text-decoration:none;font-weight:bold}main{max-width:1200px;margin:2rem auto;padding:0 1rem}.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}.video-card{display:block;color:inherit;text-decoration:none;background:var(--card);border-radius:8px;overflow:hidden;box-shadow:0 4px 6px rgba(0,0,0,.1);transition:transform .2s}.video-card:hover{transform:translateY(-5px)}.video-card img{width:100%;height:180px;object-fit:cover}.card-body{padding:1rem}.video-card h3{font-size:1.1rem;margin-bottom:.5rem}.badge{display:inline-block;background:#e0e7ff;color:#3730a3;padding:.2rem .6rem;border-radius:12px;font-size:.8rem;text-transform:capitalize}.meta-date{color:#64748b;font-size:.85rem;margin-bottom:.5rem}.video-detail{max-width:980px;background:transparent;padding:0 1rem 3rem}.video-detail>h1{font-size:clamp(1.35rem,3vw,2rem);line-height:1.25;margin:1.25rem 0 .45rem}.meta-info{color:#64748b;font-size:.9rem;margin-bottom:.9rem}.video-player{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#000;border-radius:10px;box-shadow:0 8px 28px rgba(15,23,42,.14)}.video-player iframe,.video-poster{position:absolute;inset:0;width:100%;height:100%}.video-poster{cursor:pointer;background:#000;display:flex;align-items:center;justify-content:center}.video-poster img{width:100%;height:100%;object-fit:cover}.video-play-button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:72px;height:50px;border:0;border-radius:10px;background:rgba(0,0,0,.78);color:#fff;font-size:24px;cursor:pointer}.description{background:var(--card);border-radius:10px;padding:1rem 1.1rem;margin:1rem 0;box-shadow:0 3px 14px rgba(15,23,42,.06)}.description h3{font-size:1rem;margin-bottom:.3rem}.description p{color:#475569;white-space:pre-line}.related-videos{margin-top:1.4rem}.related-header{display:flex;justify-content:space-between;margin-bottom:.85rem}.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.related-card{display:block;color:inherit;text-decoration:none;background:var(--card);border-radius:10px;overflow:hidden;box-shadow:0 3px 14px rgba(15,23,42,.08)}.related-thumb{position:relative;aspect-ratio:16/9;background:#0f172a;overflow:hidden}.related-thumb img{width:100%;height:100%;object-fit:cover}.related-play{position:absolute;left:.7rem;bottom:.7rem;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.72);color:#fff}.related-body{padding:.75rem .85rem}.related-body h3{font-size:.98rem;line-height:1.35;margin-bottom:.3rem}.related-body p{color:#64748b;font-size:.78rem;margin-bottom:.45rem}.related-ad-slot{grid-column:1/-1;min-height:250px;display:flex;justify-content:center;align-items:center;overflow:hidden}.ad-slot{width:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}.ad-slot-banner{min-height:90px;margin:1rem auto 0}.ad-banner-desktop{display:block;width:728px;max-width:100%;min-height:90px}.ad-banner-mobile{display:none;width:320px;max-width:100%;min-height:50px}@media(max-width:767px){.ad-banner-desktop{display:none}.ad-banner-mobile{display:block}.ad-slot-banner{min-height:50px}.video-detail{padding:0 .65rem 2rem}.related-grid{grid-template-columns:1fr 1fr;gap:.7rem}.related-body{padding:.6rem}.related-body h3{font-size:.86rem}}footer{text-align:center;padding:2rem;color:#64748b;font-size:.9rem}
/* Player ad layout: banner above title, banner below player, native ads every 4 related videos. */
.player-top-ad,.player-bottom-ad{margin:1rem auto;min-height:50px}.player-top-ad{margin-top:0}.player-bottom-ad{margin-bottom:1.1rem}.related-native-ad{grid-column:1/-1;min-height:250px;margin:.2rem 0 .4rem;display:flex;justify-content:center;align-items:center;overflow:hidden}.related-native-ad:empty{display:none}
@media(max-width:767px){.player-top-ad,.player-bottom-ad{min-height:50px}.player-top-ad .ad-banner-mobile,.player-bottom-ad .ad-banner-mobile{display:block}.player-top-ad .ad-banner-desktop,.player-bottom-ad .ad-banner-desktop{display:none}.related-native-ad{min-height:250px}.video-detail{max-width:980px}}
@media(min-width:768px){.player-top-ad,.player-bottom-ad{min-height:90px}.player-top-ad .ad-banner-mobile,.player-bottom-ad .ad-banner-mobile{display:none}.player-top-ad .ad-banner-desktop,.player-bottom-ad .ad-banner-desktop{display:block}}

/* Riwayat video di bawah pemutar: 2 kolom x 2 baris per halaman, native ad, lalu nomor halaman. */
.related-videos{margin-top:1rem}
.related-header h2{font-size:1.15rem}
.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.related-native-ad{margin:1rem 0 .5rem;min-height:250px}
.related-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.4rem;margin:1rem 0 .5rem}
.page-btn{min-width:38px;height:38px;padding:0 .7rem;border:1px solid #cbd5e1;border-radius:8px;background:var(--card);color:var(--text);font-weight:600;font-size:.95rem;cursor:pointer}
.page-btn:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}
.page-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}
.page-btn:disabled{opacity:.4;cursor:default}
.page-dots{color:#64748b;padding:0 .2rem}
@media(max-width:767px){.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-btn{min-width:34px;height:34px;padding:0 .5rem;font-size:.9rem}}

/* Beranda: grid 2 kolom, 4 video per halaman, native ad, lalu nomor halaman. */
.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:980px;gap:1rem}
.video-card img{height:auto;aspect-ratio:16/9}
.home-below{max-width:980px;margin:0 auto;padding:0 1rem}
@media(max-width:767px){.video-grid{gap:.7rem;padding:0 .65rem}.home-below{padding:0 .65rem}.video-card h3{font-size:.9rem}.card-body{padding:.65rem}}

/* Penomoran halaman beranda ditampilkan di atas dan bawah daftar video. */
.home-pagination-top{max-width:980px;margin:1.1rem auto 0;padding:0 1rem}
.home-below .related-pagination{margin:1rem 0 .5rem}


/* Access guard: layar pemblokiran VPN/proxy dan AdBlock. */
html.access-checking body{overflow:hidden}
html.access-checking body>*:not(#accessGuard){visibility:hidden!important}
#accessGuard{position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;padding:1.25rem;background:rgba(8,15,30,.97);color:#fff;visibility:visible!important}
#accessGuard .access-guard-card{width:min(100%,520px);padding:2rem 1.4rem;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:#111c31;box-shadow:0 20px 60px rgba(0,0,0,.45);text-align:center}
#accessGuard h2{font-size:clamp(1.35rem,4vw,1.8rem);line-height:1.25;margin-bottom:.9rem}
#accessGuard p{color:#dbeafe;margin:.55rem 0;line-height:1.65}
#accessGuard .access-guard-status{font-size:.9rem;color:#cbd5e1;margin-top:1rem}
#accessGuard .access-guard-reload{margin-top:1rem;padding:.7rem 1.1rem;border:0;border-radius:9px;background:#fff;color:#0f172a;font-weight:700;cursor:pointer}
