

:root{
  --radius:18px;
  --bg:#0a0e19;
  --panel:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#2563eb;
  --border:rgba(255,255,255,.08);
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,#0a0e19,#0f172a);
  color:var(--text);
}
a{color:inherit;text-decoration:none;}

.wrap{max-width:1200px;margin:0 auto;padding:0 18px;}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background:rgba(10,14,25,.55);
  border-bottom:1px solid var(--border);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
}
.brand{display:flex; gap:10px; align-items:center; font-weight:800; letter-spacing:.2px;}
.brand-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 18px rgba(37,99,235,.7);}
.nav{display:flex; gap:14px; font-weight:600; color:var(--muted);}
.nav a{padding:8px 10px;border-radius:10px;}
.nav a:hover{background:rgba(255,255,255,.06); color:var(--text);}

.hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:84px 26px;
  margin:22px 0 18px;
  border-radius:var(--radius);
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(10,14,25,.55) 0%, rgba(10,14,25,.82) 100%),
    url("../img/devil.jpg");
  background-size:cover;
  background-position:center;
  border:1px solid var(--border);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(circle at center,
      rgba(10,14,25,0) 52%,
      rgba(10,14,25,.70) 100%);
}
.hero-content{position:relative;z-index:2;text-align:center;max-width:860px;}
.hero h1{font-size:44px;line-height:1.1;margin-bottom:14px;}
.hero p{font-size:18px;color:#d1d5db;}

.grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:14px;
  margin:16px 0 44px;
}

.card{
  background:linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.98));
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  transition:transform .16s ease, border-color .16s ease;
}
.card:hover{transform:translateY(-3px); border-color:rgba(37,99,235,.65);}
.card.disabled{opacity:.55; filter:saturate(.8);}
.card.disabled:hover{transform:none; border-color:var(--border);}

.thumb{
  position:relative;
  height:122px;
  background:#000;
}
.thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.badge{
  position:absolute; left:10px; top:10px;
  font-size:12px; font-weight:800; letter-spacing:.3px;
  padding:6px 10px; border-radius:999px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.14);
}
.badge .dot{
  display:inline-block; width:8px; height:8px; border-radius:50%;
  margin-right:8px; background:#ef4444; box-shadow:0 0 10px rgba(239,68,68,.7);
  transform:translateY(1px);
}
.badge.off .dot{background:#9ca3af; box-shadow:none;}

.card-body{padding:12px 12px 14px;}
.card-title{font-weight:800; margin-bottom:6px;}
.card-sub{font-size:12px; color:var(--muted); line-height:1.35; min-height:32px;}

.footer{
  color:var(--muted);
  padding:24px 0 42px;
  border-top:1px solid var(--border);
  margin-top:20px;
  font-size:13px;
  display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
}

/* Camera page */
.page-title{margin:18px 0 10px;}
.page-title h2{font-size:22px;}
.page-title p{color:var(--muted); margin-top:6px; font-size:13px;}

.player{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#000;
}
.player iframe{
  width:100%;
  height:640px;
  border:none;
  display:block;
}

/* Popup ad */
.popup-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}
.popup-box{
  width:100%;
  max-width:520px;
  background:linear-gradient(180deg, rgba(17,24,39,.98), rgba(15,23,42,.98));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  animation:pop .18s ease-out;
}
@keyframes pop{
  from{transform:scale(.96); opacity:0;}
  to{transform:scale(1); opacity:1;}
}
.popup-header{display:flex; justify-content:space-between; align-items:center; gap:12px;}
.popup-header h3{font-size:18px;}
.popup-body{color:#d1d5db; margin:10px 0 16px; line-height:1.5;}
.popup-actions{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;}
.btn{
  border:none;
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
}
.btn.primary{background:var(--accent); color:#fff;}
.btn.ghost{background:rgba(255,255,255,.08); color:#fff;}
.btn:hover{filter:brightness(1.05);}

/* Responsive */
@media (max-width: 1100px){
  .grid{grid-template-columns:repeat(3,1fr);}
  .thumb{height:150px;}
}
@media (max-width: 720px){
  .grid{grid-template-columns:repeat(2,1fr);}
  .hero{padding:62px 18px;}
  .hero h1{font-size:32px;}
  .hero p{font-size:16px;}
  .player iframe{height:420px;}
}
@media (max-width: 420px){
  .grid{grid-template-columns:1fr;}
  .thumb{height:190px;}
}
