/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(180deg, #060d1a, #0a1628);
  color: #e8f0fe;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============ SCROLL PROGRESS ============ */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ff3c3c, #ff006a);
  transform-origin: left; transform: scaleX(0);
  z-index: 9999; transition: transform 0.1s;
}

/* ============ HEADER ============ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mone {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  border: 2px solid rgba(42,157,244,0.3); box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.brand-name {
  font-size: 17px; font-weight: 900; letter-spacing: 1px;
  background: linear-gradient(90deg, #2a9df4, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ab a {
  text-decoration: none; color: #fff; font-weight: 800;
  padding: 10px 18px; border-radius: 12px; font-size: 14px;
  background: linear-gradient(135deg, #1da1ff, #0066ff);
  box-shadow: 0 6px 20px rgba(0,102,255,0.3); transition: all 0.3s;
}
.ab a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,102,255,0.5); }

/* ============ PAGE HERO ============ */
.page-hero {
  text-align: center; padding: 60px 20px 40px;
  background: radial-gradient(ellipse at top, rgba(42,157,244,0.08) 0%, transparent 70%);
}
.hero-tag {
  display: inline-block; background: rgba(255,60,60,0.12); color: #ff8a8a;
  padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 800;
  letter-spacing: 1px; border: 1px solid rgba(255,60,60,0.25); margin-bottom: 14px;
}
.page-hero h1 { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.page-hero p { color: #7db9e8; font-size: 15px; }

/* ============ SEARCH ============ */
.search-wrap { max-width: 500px; margin: 0 auto 40px; padding: 0 20px; }
.search-input {
  width: 100%; padding: 13px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(42,157,244,0.2);
  color: #fff; font-size: 14px; font-family: 'Cairo', sans-serif;
  font-weight: 700; outline: none; transition: all 0.3s; text-align: right;
}
.search-input::placeholder { color: #5a7a9a; }
.search-input:focus {
  border-color: rgba(42,157,244,0.5); background: rgba(42,157,244,0.06);
  box-shadow: 0 0 0 3px rgba(42,157,244,0.1);
}

/* ============ GRID ============ */
.se1 { padding: 0 18px 80px; max-width: 1200px; margin: 0 auto; }
.ch { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

/* ============ VIDEO CARD ============ */
.chn {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; overflow: hidden; transition: all 0.35s ease;
  opacity: 0; transform: translateY(24px);
}
.chn.visible { opacity: 1; transform: translateY(0); }
.chn:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255,60,60,0.35);
  box-shadow: 0 25px 60px rgba(255,0,106,0.12);
}
.imgw { position: relative; overflow: hidden; }
.imgw img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.4s ease; display: block; }
.chn:hover .imgw img { transform: scale(1.08); }
.bos {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.8); color: #fff; padding: 4px 9px;
  border-radius: 7px; font-size: 12px; font-weight: 800; z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
}
.play-overlay {
  position: absolute; inset: 0; background: rgba(255,0,106,0.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.play-overlay span { font-size: 42px; color: #fff; }
.chn:hover .play-overlay { opacity: 1; }
.mal { padding: 16px 18px 20px; }
.vid-title {
  font-size: 15px; font-weight: 800; color: #eaf3ff; line-height: 1.6;
  margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vid-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #5a7a9a; font-weight: 700; margin-bottom: 14px;
}
.hey {
  display: inline-block; text-decoration: none; font-weight: 900;
  font-family: 'Cairo', sans-serif; padding: 9px 20px; border-radius: 12px;
  color: #fff; background: linear-gradient(135deg, #ff3c3c, #ff006a);
  box-shadow: 0 8px 25px rgba(255,0,106,0.35); transition: all 0.3s; font-size: 14px;
}
.hey:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(255,0,106,0.55); }
.no-results { display: none; text-align: center; padding: 60px 20px; color: #5a7a9a; font-size: 18px; font-weight: 700; }

/* ============ FOOTER ============ */
.foot { padding: 36px 20px; background: #030810; border-top: 1px solid rgba(42,157,244,0.1); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand span { font-weight: 900; font-size: 15px; color: #fff; }
.links { display: flex; gap: 10px; }
.links a { text-decoration: none; color: #7db9e8; font-weight: 800; padding: 7px 14px; background: rgba(255,255,255,0.04); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); transition: all 0.2s; font-size: 13px; }
.links a:hover { background: rgba(42,157,244,0.1); color: #fff; }
.fop { font-size: 13px; color: #4a6a8a; font-weight: 700; }
.ssss { color: #ff3c3c; }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 900;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #ff3c3c, #ff006a);
  color: #fff; font-size: 20px; font-weight: 900; border: none; cursor: pointer;
  box-shadow: 0 8px 25px rgba(255,0,106,0.35);
  opacity: 0; transform: translateY(20px) scale(0.8); transition: all 0.3s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .page-hero h1 { font-size: 28px; }
  .imgw img { height: 170px; }
  .header-inner { padding: 12px 14px; }
  .footer-inner { flex-direction: column; text-align: center; }
}