/* ══════════════════════════════
   freemasala — Scoped CSS
   ══════════════════════════════ */
.vsite *{box-sizing:border-box;}
body{background:#13171f;margin:0;}
.vsite{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#dce3ea;background:#13171f;}

/* ── Header ── */
.vsite .header{background:#161b22;border-bottom:1px solid #30363d;padding:14px 16px 0;max-width:1200px;margin:0 auto;}
.vsite .header-top{display:flex;align-items:center;gap:10px;padding-bottom:10px;}
.vsite .brand-name{display:flex;align-items:center;gap:0;white-space:nowrap;text-decoration:none;flex-shrink:0;line-height:1;}
.vsite .brand-name i{font-size:20px;color:#f85149;}
.vsite .search-box{display:flex !important;flex:1;min-width:0;}
.vsite .search-box input{flex:1;min-width:0;padding:7px 10px;background:#21262d;border:1px solid #30363d;border-right:none;border-radius:7px 0 0 7px;color:#e6edf3;font-size:13px;outline:none;}
.vsite .search-box input::placeholder{color:#6e7681;}
.vsite .search-box input:focus{border-color:#58a6ff;}
.vsite .search-box button{padding:7px 11px;background:#21262d;border:1px solid #30363d;border-radius:0 7px 7px 0;color:#8b949e;cursor:pointer;font-size:15px;flex-shrink:0;transition:background .15s,color .15s;}
.vsite .search-box button:hover{background:#2d333b;color:#58a6ff;}
.vsite .mob-menu-btn{display:none;padding:7px 9px;background:#21262d;border:1px solid #30363d;border-radius:7px;color:#8b949e;cursor:pointer;font-size:18px;flex-shrink:0;}
.vsite .nav{display:flex;gap:2px;overflow-x:auto;padding:6px 0;scrollbar-width:none;}
.vsite .nav::-webkit-scrollbar{display:none;}
.vsite .nav-btn{display:flex;align-items:center;gap:5px;padding:6px 13px;border-radius:6px;font-size:12.5px;font-weight:500;color:#8b949e;border:none;background:transparent;cursor:pointer;white-space:nowrap;transition:all .15s;text-decoration:none;}
.vsite .nav-btn:hover{background:#21262d;color:#e6edf3;}
.vsite .nav-btn.active{background:#21262d;color:#58a6ff;border-bottom:2px solid #58a6ff;}
.vsite .nav-btn i{font-size:14px;}

/* ── Content wrapper ── */
.vsite .content{padding:20px 16px 32px;max-width:1200px;margin:0 auto;background:#1c212b;}
.vsite .section-label{font-size:13px;font-weight:600;color:#8b949e;text-transform:uppercase;letter-spacing:1px;margin-bottom:14px;display:flex;align-items:center;gap:8px;}
.vsite .section-label::after{content:'';flex:1;height:1px;background:#30363d;}

/* ── Grid ── */
.vsite .grid{display:grid !important;grid-template-columns:repeat(4,1fr) !important;gap:14px !important;}

/* ── Card ── */
.vsite .grid .card{display:block !important;float:none !important;width:100% !important;border-radius:10px;overflow:hidden;background:#1c2128;border:1px solid #30363d;cursor:pointer;transition:border-color .2s,transform .2s;text-decoration:none;}
.vsite .grid .card:hover{border-color:#58a6ff55;transform:translateY(-3px);}

/* ── Thumb ── */
.vsite .grid .thumb{position:relative !important;width:100% !important;padding-top:125% !important;overflow:hidden !important;background:#0d1117;height:auto !important;flex:none !important;display:block !important;}
.vsite .grid .thumb img{position:absolute !important;inset:0 !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important;object-fit:cover !important;display:block !important;transition:transform .3s;}
.vsite .grid .card:hover .thumb img{transform:scale(1.04);}
.vsite .thumb-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.05) 50%,transparent 100%);pointer-events:none;}
.vsite .play-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.12);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s;border:1.5px solid rgba(255,255,255,.25);}
.vsite .grid .card:hover .play-btn{opacity:1;}
.vsite .play-btn i{font-size:18px;color:#fff;}
.vsite .thumb-bottom{position:absolute;bottom:0;left:0;right:0;padding:8px 9px;display:flex !important;justify-content:space-between;align-items:flex-end;pointer-events:none;}
.vsite .badge-time{font-size:10.5px;color:rgba(255,255,255,.85);background:rgba(0,0,0,.6);padding:2px 6px;border-radius:4px;white-space:nowrap;}
.vsite .badge-dur{font-size:10.5px;font-weight:700;color:#fff;background:rgba(0,0,0,.85);padding:2px 6px;border-radius:4px;white-space:nowrap;}

/* ── Card body ── */
.vsite .grid .card-body{padding:9px 10px 11px !important;display:block !important;}
.vsite .video-title{font-size:13px;font-weight:500;color:#e6edf3;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.vsite .video-actor{font-size:11.5px;color:#6e7681;margin-top:5px;}
.vsite .video-actor i{font-size:11px;vertical-align:-1px;}

/* ── Pagination ── */
.vsite .pagination{display:flex;justify-content:center;align-items:center;gap:6px;padding:28px 0 8px;}
.vsite .pg-btn{width:34px;height:34px;border-radius:7px;border:1px solid #30363d;background:#1c2128;color:#8b949e;font-size:13px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;text-decoration:none;}
.vsite .pg-btn:hover{background:#21262d;color:#e6edf3;border-color:#58a6ff66;}
.vsite .pg-btn.active{background:#58a6ff;color:#0d1117;border-color:#58a6ff;font-weight:700;}
.vsite .pg-btn.disabled{opacity:0.35;pointer-events:none;}

/* ── Footer ── */
.vsite .footer{text-align:center;padding:24px 20px;font-size:12px;color:#6e7681;border-top:1px solid #30363d;background:#0d1117;max-width:1200px;margin:0 auto;}
.vsite .footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;margin-bottom:12px;}
.vsite .footer-links a{color:#6e7681;text-decoration:none;font-size:12px;transition:color .15s;}
.vsite .footer-links a:hover{color:#58a6ff;}
body.light .vsite .footer-links a:hover{color:#1a6fc4;}

/* ── States ── */
.vsite .msg{text-align:center;padding:60px 0;color:#6e7681;grid-column:1/-1;}
.vsite .msg i{font-size:36px;display:block;margin-bottom:10px;opacity:.4;}

/* ── Watch page ── */
.vsite .watch-box{max-width:1200px;margin:0 auto;background:#161b22;border:1px solid #21262d;border-radius:12px;padding:20px 20px 24px;}
.vsite .watch-title{font-size:18px;font-weight:600;color:#e6edf3;line-height:1.4;margin-bottom:10px;}
.vsite .watch-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:12.5px;color:#8b949e;margin-bottom:16px;}
.vsite .watch-meta i{font-size:13px;vertical-align:-1px;margin-right:3px;}
.vsite .watch-thumb{position:relative;width:100%;border-radius:8px;overflow:hidden;background:#111;margin-bottom:16px;}
.vsite .watch-thumb img{width:100%;display:block;object-fit:cover;}
.vsite .download-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 22px;background:#238636;border:1px solid #2ea043;border-radius:8px;color:#fff;font-size:14px;font-weight:600;text-decoration:none;transition:background .15s;}
.vsite .download-btn:hover{background:#2ea043;}
.vsite .download-btn i{font-size:16px;}

/* ── Responsive ── */
@media(max-width:600px){
  .vsite .mob-menu-btn{display:flex;align-items:center;justify-content:center;}
  .vsite .nav{display:none;flex-direction:column;gap:2px;padding:6px 0 10px;border-top:1px solid #30363d;}
  .vsite .nav.open{display:flex;}
  .vsite .nav-btn{width:100%;justify-content:flex-start;padding:10px 14px;border-radius:6px;font-size:13.5px;border-bottom:none !important;}
  .vsite .nav-btn.active{border-left:3px solid #58a6ff;border-radius:0 6px 6px 0;}
  .vsite .grid{grid-template-columns:1fr !important;}
  .vsite .watch-box{padding:14px;border-radius:8px;}
  .vsite .watch-title{font-size:15px;}
}
@media(min-width:601px) and (max-width:900px){
  .vsite .grid{grid-template-columns:repeat(2,1fr) !important;}
}

/* ── Actor List ── */
.vsite .actor-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;}
.vsite .actor-card{background:#1c2128;border:1px solid #30363d;border-radius:10px;padding:20px 12px;text-align:center;text-decoration:none;transition:border-color .2s,transform .2s;display:block;}
.vsite .actor-card:hover{border-color:#58a6ff55;transform:translateY(-3px);}
.vsite .actor-avatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#1f6feb,#58a6ff);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;margin:0 auto 10px;}
.vsite .actor-name{font-size:13px;font-weight:500;color:#e6edf3;margin-bottom:4px;line-height:1.3;}
.vsite .actor-count{font-size:11.5px;color:#6e7681;}

@media(max-width:900px){.vsite .actor-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:500px){.vsite .actor-grid{grid-template-columns:repeat(2,1fr);}}

/* ── Category Grid ── */
.vsite .cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.vsite .cat-card{background:#1c2128;border:1px solid #30363d;border-radius:10px;padding:28px 16px;text-align:center;text-decoration:none;transition:border-color .2s,transform .2s;display:block;}
.vsite .cat-card:hover{border-color:#58a6ff55;transform:translateY(-3px);}
.vsite .cat-icon{font-size:32px;color:#58a6ff;margin-bottom:10px;display:block;}
.vsite .cat-name{font-size:14px;font-weight:600;color:#e6edf3;margin-bottom:4px;}
.vsite .cat-count{font-size:12px;color:#6e7681;}

@media(max-width:900px){.vsite .cat-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:500px){.vsite .cat-grid{grid-template-columns:repeat(2,1fr);}}
/* ── Video Info Grid (size, format, resolution etc) ── */
.vsite .info-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:20px;}
.vsite .info-item{background:#1c2128;border:1px solid #30363d;border-radius:10px;padding:14px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;transition:border-color .15s;}
.vsite .info-item:hover{border-color:#58a6ff55;}
.vsite .info-item i{font-size:22px;color:#58a6ff;}
.vsite .info-label{font-size:10.5px;color:#8b949e;text-transform:uppercase;letter-spacing:0.6px;font-weight:600;}
.vsite .info-val{font-size:14px;color:#e6edf3;font-weight:700;}
.vsite .info-title{font-size:13px;font-weight:600;color:#8b949e;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px;display:flex;align-items:center;gap:8px;}
.vsite .info-title::after{content:'';flex:1;height:1px;background:#30363d;}

@media(max-width:600px){
  .vsite .info-grid{grid-template-columns:repeat(2,1fr);}
}
@media(min-width:601px) and (max-width:900px){
  .vsite .info-grid{grid-template-columns:repeat(3,1fr);}
}

/* ── Back Button ── */
.vsite .back-btn{display:inline-flex;align-items:center;gap:6px;color:#8b949e;text-decoration:none;font-size:13px;transition:color .15s;}
.vsite .back-btn:hover{color:#58a6ff;}
.vsite .back-btn i{font-size:15px;}

/* ============================================
   Video Card (vc) — used in loop-video.php
   ============================================ */
.vsite .video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.vsite .vc {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    background: #1c2128;
    border: 1px solid #30363d;
    transition: transform .2s;
}
.vsite .vc:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

/* Thumb */
.vsite .vc-thumb {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #0d1117;
}
.vsite .vc-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: filter .3s, transform .3s;
}
.vsite .vc:hover .vc-thumb img {
    filter: brightness(1.25);
    transform: scale(1.04);
}
.vsite .vc-thumb::after{display:none;}

/* Badges */
.vsite .vc-dur,
.vsite .vc-ago {
    position: absolute;
    bottom: 8px;
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 1;
}
.vsite .vc-ago {
    left: 8px;
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.85);
}
.vsite .vc-dur {
    right: 8px;
    background: rgba(0,0,0,.85);
    color: #fff;
    font-weight: 700;
}

/* Info */
.vsite .vc-info {
    padding: 10px 12px 12px;
    background: #161b22;
    border-top: 1px solid #21262d;
}
.vsite .vc-title {
    font-size: 13px;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.1px;
}

/* Play icon on hover */
.vsite .vc-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.vsite .vc-play i { font-size: 48px; color: rgba(255,255,255,.9); filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.vsite .vc:hover .vc-play {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
}

/* Light mode card info */
body.light .vsite .vc-info { background: #ede8e2; border-top-color: #d8d0c8; }
body.light .vsite .vc-title { color: #2d2d2d; }

/* Responsive */
@media (max-width: 499px) {
    .vsite .video-grid { grid-template-columns: 1fr; }
}
@media (min-width: 500px) and (max-width: 749px) {
    .vsite .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Theme toggle button ── */
.vsite .theme-btn{
    display:flex;align-items:center;justify-content:center;
    width:34px;height:34px;border-radius:8px;
    background:transparent;border:1px solid #30363d;
    color:#8b949e;cursor:pointer;flex-shrink:0;
    transition:background .15s,color .15s,border-color .15s;
    font-size:16px;
}
.vsite .theme-btn:hover{background:#21262d;color:#e6edf3;border-color:#58a6ff;}
body.light .vsite .theme-btn:hover{background:#f6f8fa;color:#0969da;border-color:#0969da;}

/* Info cards (watch + download page) */
.vsite .info-card{background:#161b22;border:1px solid #30363d;border-radius:10px;padding:16px 10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:7px;}
.vsite .info-card-label{font-size:10.5px;color:#8b949e;text-transform:uppercase;letter-spacing:0.6px;font-weight:600;}
.vsite .info-card-val{font-size:14px;color:#e6edf3;font-weight:700;}
body.light .vsite .info-card-label{color:#6b6560;}

/* Light mode — page content areas */
body.light .vsite .watch-box{background:#faf6f1 !important;border-color:#d8d0c8 !important;}

/* ── Light mode ── */
body.light{--bg:#f5f0eb;--surface:#faf7f4;--surface2:#ede8e2;--border:#d8d0c8;--fg:#2d2d2d;--fg2:#5a5550;--accent:#1a6fc4;--header:#faf7f4;}
body.light{background:#797979;color:#2d2d2d;}
body.light .vsite{background:#797979;color:#2d2d2d;}
body.light .vsite .header{background:var(--header);border-bottom-color:var(--border);}
body.light .vsite .header-top{background:var(--header);}
body.light .vsite .nav{background:var(--header);}
body.light .vsite .search-box input{background:#ede8e2;border-color:var(--border);color:var(--fg);}
body.light .vsite .search-box button{background:#ede8e2;border-color:var(--border);color:var(--fg);}
body.light .vsite .nav-btn{color:#5a5550;}
body.light .vsite .nav-btn:hover,body.light .vsite .nav-btn.active{background:#ede8e2;color:#1a6fc4;}
body.light .vsite .brand-name span:nth-child(2){color:#2d2d2d !important;}
body.light .vsite .brand-name span:nth-child(2) span{color:#1a6fc4 !important;}
body.light .vsite .section-label{color:#5a5550;border-bottom-color:#d8d0c8;}
body.light .vsite .content{background:#f5f0eb !important;}
body.light .vsite .vc{background:#faf7f4;border-color:#d8d0c8;}
body.light .vsite .vc-title{color:#2d2d2d;}
body.light .vsite .watch-box{background:#faf7f4 !important;border-color:#d8d0c8 !important;}
body.light .vsite .watch-title{color:#2d2d2d;}
body.light .vsite .watch-meta span{color:#5a5550;}
body.light .vsite .footer{background:#faf7f4;border-top-color:#d8d0c8;color:#5a5550;}
body.light .vsite .footer-links a{color:#5a5550;}
body.light .vsite .footer-links a:hover{color:#1a6fc4;}
body.light .vsite .info-card{background:#e8e2db;border-color:#d8d0c8;}
body.light .vsite .info-card-label{color:#6b6560;}
body.light .vsite .info-card-val{color:#2d2d2d;}
body.light .vsite .theme-btn{border-color:#d0d7de;color:#57606a;}
body.light .vsite .theme-btn:hover{background:#ede8e2;color:#1a6fc4;border-color:#1a6fc4;}