/*
Theme Name: VideoGrid Lite
Theme URI: https://example.com/
Author: VideoGrid Lite
Author URI: https://example.com/
Description: Portal video layout dengan sidebar + grid card, plus Customizer settings.
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: videogrid-lite
Tags: custom-logo, custom-menu, one-column, two-columns, right-sidebar, grid-layout
*/

:root{
  --vg-primary:#2b6df6;
  --vg-bg:#ffffff;
  --vg-surface:#ffffff;
  --vg-text:#111827;
  --vg-muted:#6b7280;
  --vg-border:#e5e7eb;
  --vg-link-hover:#1d4ed8;

  --vg-container:1280px;
  --vg-sidebar-w:280px;

  --vg-font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --vg-font-size:14px;
  --vg-heading-scale:1.0;
  --vg-menu-font-size:13px;
  --vg-card-title-size:13px;
  --vg-sidebar-font-size:13px;

  --vg-header-pad:14px;
  --vg-logo-max-w:140px;
  --vg-logo-max-h:40px;

  --vg-gap:16px;
  --vg-cols-mobile:1;
  --vg-cols-tablet:2;
  --vg-cols-desktop:3;

  --vg-thumb-w:16;
  --vg-thumb-h:9;

  --vg-card-radius:10px;
  --vg-card-shadow:0 10px 20px rgba(0,0,0,.08);
  --vg-card-shadow-off:0 0 0 rgba(0,0,0,0);
  --vg-card-shadow-enabled:1; /* 1=on, 0=off */
}

*{box-sizing:border-box;}
html{font-size:var(--vg-font-size);}
body{
  margin:0;
  font-family:var(--vg-font-family);
  color:var(--vg-text);
  background:var(--vg-bg);
  line-height:1.45;
}
img{max-width:100%; height:auto;}
a{color:var(--vg-primary); text-decoration:none;}
a:hover{color:var(--vg-link-hover);}

.vg-container{
  max-width:var(--vg-container);
  margin:0 auto;
  padding:0 14px;
}

/* Header */
.vg-topbar{
  background:#000;
  color:#fff;
  font-size:12px;
}
.vg-topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
}
.vg-topbar a{color:#fff;}
.vg-topbar a:hover{color:#dbeafe;}
.vg-topbar__left, .vg-topbar__right{display:flex; align-items:center; gap:16px;}
.vg-dot{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--vg-primary);
  margin-right:8px;
  position:relative;
  top:-1px;
}

.vg-header{
  background:#fff;
  border-bottom:1px solid var(--vg-border);
}
.vg-header.is-sticky{
  position:sticky;
  top:0;
  z-index:50;
}
.vg-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:var(--vg-header-pad) 0;
}

.site-logo{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:180px;
}
.site-logo img{
  max-width:var(--vg-logo-max-w);
  max-height:var(--vg-logo-max-h);
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

/* Fallback logo styled like the reference */
.vg-logo-fallback{
  display:flex;
  align-items:center;
  font-weight:800;
  letter-spacing:-.2px;
  font-size:28px;
}
.vg-logo-fallback .vg-logo-sex{color:var(--vg-primary);}
.vg-logo-fallback .vg-logo-movies{color:#111; font-weight:700;}
.vg-logo-fallback .vg-logo-play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#ef4444;
  margin:0 6px;
}
.vg-logo-fallback .vg-logo-play:before{
  content:"";
  display:block;
  width:0;height:0;
  border-left:10px solid #fff;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  margin-left:2px;
}
.vg-logo-fallback .vg-logo-tube{color:#111; font-weight:800;}

.vg-search{
  flex:1;
  display:flex;
  justify-content:center;
}
.vg-search form{width:min(740px, 100%);} 
.vg-search__wrap{
  display:flex;
  align-items:center;
  background:#111;
  border-radius:999px;
  padding:6px;
  box-shadow:0 10px 16px rgba(0,0,0,.14);
}
.vg-search__input{
  flex:1;
  border:0;
  outline:0;
  padding:12px 16px;
  border-radius:999px;
  background:transparent;
  color:#fff;
  font-size:13px;
}
.vg-search__input::placeholder{color:rgba(255,255,255,.7);}
.vg-search__btn{
  border:0;
  cursor:pointer;
  width:44px;
  height:44px;
  border-radius:999px;
  background:var(--vg-primary);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.vg-search__btn:hover{filter:brightness(.95);}

/* Navbar */
.vg-nav{
  background:#fff;
  border-top:1px solid var(--vg-border);
}
.vg-nav__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:10px 0;
}
.vg-nav__home{
  display:inline-flex;
  width:44px;
  height:32px;
  align-items:center;
  justify-content:center;
  color:var(--vg-primary);
  border-bottom:3px solid var(--vg-primary);
  border-radius:6px 6px 0 0;
}
.vg-nav__home svg{width:18px;height:18px;}

.vg-menu{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
}
.vg-menu a{
  display:inline-block;
  padding:10px 4px;
  font-size:var(--vg-menu-font-size);
  text-transform:uppercase;
  letter-spacing:.5px;
  color:#111;
}
.vg-menu a:hover{color:var(--vg-primary);}

/* Layout */
.vg-main{background:#fff;}
.vg-layout{
  display:flex;
  align-items:flex-start;
  gap:var(--vg-gap);
  padding:18px 0 10px;
}
.vg-sidebar{
  flex:0 0 var(--vg-sidebar-w);
  width:var(--vg-sidebar-w);
  font-size:var(--vg-sidebar-font-size);
}
.vg-content{
  flex:1;
  min-width:0;
}

/* Sidebar blocks */
.vg-box{
  background:#fff;
  border:1px solid var(--vg-border);
  border-radius:10px;
  overflow:hidden;
  margin-bottom:12px;
}
.vg-box__title{
  padding:10px 12px;
  font-weight:700;
  display:flex;
  gap:8px;
  align-items:center;
}
.vg-box__list{list-style:none; padding:0 0 10px; margin:0;}
.vg-box__list li a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  color:#111;
}
.vg-box__list li a:hover{background:#f3f4f6;}
.vg-ico{
  width:16px;height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--vg-primary);
}

/* Section heading */
.vg-section{margin-bottom:18px;}
.vg-section__title{
  font-size:28px;
  letter-spacing:-.4px;
  font-weight:500;
  margin:12px 0 14px;
}

/* Grid */
.vg-grid{
  --vg-cols: var(--vg-cols-mobile);
  display:grid;
  gap:var(--vg-gap);
  grid-template-columns: repeat(var(--vg-cols), minmax(0, 1fr));
}
@media (min-width: 768px){
  .vg-grid{--vg-cols: var(--vg-cols-tablet);}  
}
@media (min-width: 1024px){
  .vg-grid{--vg-cols: var(--vg-cols-desktop);} 
}

/* Card */
.vg-card{
  background:var(--vg-surface);
  border:1px solid var(--vg-border);
  border-radius:var(--vg-card-radius);
  overflow:hidden;
  box-shadow: var(--vg-card-shadow-off);
  transition: box-shadow .15s ease, transform .15s ease;
}
.vg-card.has-shadow{
  box-shadow: var(--vg-card-shadow);
}
.vg-card:hover{
  transform: translateY(-1px);
}

.vg-card__thumb{
  position:relative;
  width:100%;
  background:#f3f4f6;
  overflow:hidden;
}
/* aspect-ratio modern */
.vg-card__thumb{
  aspect-ratio: calc(var(--vg-thumb-w) / var(--vg-thumb-h));
}
/* fallback */
@supports not (aspect-ratio: 16/9){
  .vg-card__thumb::before{
    content:"";
    display:block;
    padding-top: calc(var(--vg-thumb-h) / var(--vg-thumb-w) * 100%);
  }
  .vg-card__thumb > a,
  .vg-card__thumb > img,
  .vg-card__thumb > picture{
    position:absolute;
    inset:0;
  }
}

.vg-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .18s ease;
}
.vg-card:hover .vg-card__thumb img{transform:scale(1.03);} 

.vg-badge{
  position:absolute;
  right:8px;
  top:8px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:800;
  padding:4px 8px;
  border-radius:999px;
}

.vg-card__body{padding:10px 10px 8px;}
.vg-card__title{
  margin:0 0 6px;
  font-size:var(--vg-card-title-size);
  font-weight:600;
  color:#111;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: 2.6em;
}
.vg-card__title a{color:#111;}
.vg-card__title a:hover{color:var(--vg-primary);} 

.vg-meta{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:6px 10px;
  color:var(--vg-muted);
  font-size:12px;
}
.vg-meta__left span,
.vg-meta__right span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:10px;
}
.vg-meta__right{justify-self:end;}

/* Pagination */
.vg-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:18px 0 6px;
}
.vg-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#e5e7eb;
  color:#111;
  font-size:12px;
}
.vg-page:hover{background:#d1d5db;}
.vg-page.is-current{background:var(--vg-primary); color:#fff;}
.vg-page.is-ellipsis{background:transparent; min-width:auto; padding:0 4px;}

/* Footer */
.vg-footer{
  padding:24px 0 0;
  border-top:1px solid var(--vg-border);
  background:#fff;
}
.vg-keywords{
  text-align:center;
  padding:10px 0 14px;
}
.vg-keywords a{
  display:inline-block;
  margin:0 10px 10px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:#111;
}
.vg-keywords a:hover{color:var(--vg-primary);} 

.vg-allcats{
  display:block;
  width:min(900px, 100%);
  margin:8px auto 0;
  text-align:center;
  background:#e5e7eb;
  border-radius:999px;
  padding:12px 14px;
  color:#111;
  font-size:12px;
  font-weight:700;
}
.vg-allcats:hover{background:#d1d5db;}

.vg-footer__about{
  padding:18px 0;
}
.vg-footer__about h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:800;
}
.vg-footer__about p{margin:0 0 10px; color:#111;}
.vg-footer__about ul{margin:10px 0 0 0; padding:0; list-style:none;}
.vg-footer__about li{
  margin:6px 0;
  color:#111;
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.vg-check{
  width:18px;height:18px;
  border-radius:999px;
  background:#6366f1;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 18px;
  margin-top:2px;
  font-size:12px;
  font-weight:900;
}

.vg-friends{
  background:#f3f4f6;
  padding:20px 0;
}
.vg-friends h4{margin:0 0 12px; font-size:14px; font-weight:700; color:#111;}
.vg-badges{display:flex; flex-wrap:wrap; gap:8px;}
.vg-badge-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  background:#e5e7eb;
  border-radius:999px;
  color:#111;
  font-size:12px;
}
.vg-badge-link:hover{background:#d1d5db;}
.vg-badge-link::before{
  content:"";
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--vg-primary);
  opacity:.85;
}

.vg-footer__nav{
  text-align:center;
  padding:16px 0 10px;
}
.vg-footer__nav a{
  color:#111;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.6px;
  margin:0 14px;
}
.vg-footer__nav a:hover{color:var(--vg-primary);} 

.vg-footer__note{
  text-align:center;
  color:var(--vg-muted);
  font-size:11px;
  padding:10px 0 18px;
}

/* Content helpers */
.vg-post-title{font-size:28px; margin:0 0 10px;}
.vg-single-meta{color:var(--vg-muted); font-size:12px; display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px;}
.vg-player{
  border:1px solid var(--vg-border);
  border-radius:12px;
  overflow:hidden;
  background:#000;
}
.vg-player iframe{width:100%; height:480px; border:0; display:block;}
@media(max-width: 768px){
  .vg-player iframe{height:260px;}
}

/* Responsive layout */
@media (max-width: 1024px){
  .vg-layout{flex-direction:column;}
  .vg-sidebar{width:100%; flex:0 0 auto;}
}
