*{box-sizing:border-box}
body{
  margin:0;
  font-family: Arial, sans-serif;
  background:#070b14;
  color:#e5e7eb;
}

/* TOP BAR */
.topbar{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  background: radial-gradient(800px 200px at 30% 10%, rgba(0,190,255,.18), transparent 55%),
              linear-gradient(180deg,#0b1222,#070b14);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.topbar__left{display:flex;gap:12px;align-items:center}
.topbar__right{display:flex;align-items:center;gap:10px}

/* Burger (موبايل) */
.burger{
  display:none;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#e5e7eb;
  font-size:20px;
  cursor:pointer;
}

.logoCircle{
  width:52px;height:52px;border-radius:999px;
  background:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}
.logoCircle img{width:32px;height:32px;object-fit:contain}

.topbar__titles .hello{font-weight:800;font-size:16px}
.topbar__titles .sub{opacity:.7;font-size:12px;margin-top:2px}

.clockBox{
  min-width:140px;
  text-align:center;
  border:1px solid rgba(0,255,255,.22);
  border-radius:14px;
  padding:8px 12px;
  background:rgba(0, 180, 255, .07);
}
#clockTime{font-weight:900;letter-spacing:1px}
#clockDate{opacity:.75;font-size:12px;margin-top:3px}

/* LAYOUT */
.layout{
  display:flex;
  min-height:calc(100vh - 78px);
}

/* Overlay للموبايل */
.overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:50;
}

/* SIDEBAR LEFT */
.sidebar{
  width:290px;
  background: linear-gradient(180deg,#0b1222,#070b14);
  border-right:1px solid rgba(255,255,255,.06);
  padding:16px;
  position:relative;
  z-index:60;
}

.sidebar__brand{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.brandTitle{font-size:13px;opacity:.75}

.sideDivider{
  height:1px;
  background:rgba(255,255,255,.06);
  margin:14px 0;
}
.sideLabel{font-size:12px;opacity:.65;margin-bottom:10px}

.sideItem{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color:#e5e7eb;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
  transition:.2s ease;
  margin-bottom:10px;
  cursor:pointer;
}
.sideItem:hover{transform:translateY(-1px);background:rgba(0,190,255,.08);border-color:rgba(0,190,255,.22)}
.sideItem.active{background:rgba(0,190,255,.12);border-color:rgba(0,190,255,.30)}

.dot{
  width:10px;height:10px;border-radius:999px;
  background:rgba(0,190,255,.9);
  box-shadow: 0 0 14px rgba(0,190,255,.35);
}

.smallHint{opacity:.7;font-size:12px;padding:10px 4px}

/* CONTENT */
.content{
  flex:1;
  padding:18px;
  background: radial-gradient(900px 320px at 30% 0%, rgba(0,190,255,.10), transparent 60%),
              radial-gradient(800px 280px at 90% 20%, rgba(255,160,0,.08), transparent 60%);
}
.contentHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.pageTitle{
  margin:0;
  font-size:22px;
  font-weight:900;
}
.pageHint{
  opacity:.7;
  font-size:12px;
}

/* VIDEOS GRID */
.videosGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
  gap:14px;
}
.videoCard{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:12px;
  overflow:hidden;
}
.thumb{
  height:150px;
  border-radius:14px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.thumb img{width:100%;height:100%;object-fit:cover}
.vTitle{font-weight:900;margin:10px 0 6px}
.vDesc{opacity:.75;font-size:12px;line-height:1.6;min-height:38px}
.playBtn{
  width:100%;
  margin-top:10px;
  border:0;
  border-radius:14px;
  padding:12px;
  font-weight:900;
  cursor:pointer;
  background:linear-gradient(90deg,#ffb100,#f59e0b);
  color:#121212;
}
.playBtn:hover{filter:brightness(1.05)}

.emptyState{
  grid-column:1/-1;
  padding:22px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.16);
  opacity:.75;
}

/* MODAL */
.modal{
  position:fixed;inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.65);
  z-index:100;
}
.modal.show{display:flex}
.modalBox{
  width:min(980px,96vw);
  background:#070b14;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
}
.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  background:#0b1222;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modalTitle{font-weight:900}
.modalClose{
  width:38px;height:38px;
  border:0;border-radius:12px;
  cursor:pointer;
  background:#ef4444;color:#fff;
  font-size:22px;
}
.modalBody{
  aspect-ratio:16/9;
  background:#000;
}
.modalBody iframe,
.modalBody video{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* RESPONSIVE */
@media (max-width: 920px){
  .burger{display:inline-flex;align-items:center;justify-content:center}

  /* sidebar off-canvas */
  .sidebar{
    position:fixed;
    top:78px;
    left:-320px; /* على الشمال */
    height:calc(100vh - 78px);
    transition:.25s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
  }
  .sidebar.open{left:0}
  .overlay.show{display:block}

  .layout{display:block}
  .content{min-height:calc(100vh - 78px)}
}
