/* =====================================================
   SPIDERMASTER v8 — PHANTOM OVERLORD (MIDNIGHT NAVY)
   Elite Cyber Command • Silent • Deep • Authority
   ===================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #000;
  font-family: "Segoe UI", Arial;
  color: #b9c2d3;
  overflow-x: hidden;
}

/* ===============================
   MIDNIGHT NAVY SMOKE
   =============================== */

.smoke {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(25,45,80,0.14), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(18,35,65,0.10), transparent 48%),
    radial-gradient(circle at 50% 80%, rgba(10,25,50,0.06), transparent 60%);
  animation: smokeMove 42s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes smokeMove {
  from { transform: translateX(-40px); }
  to   { transform: translateX(40px); }
}

/* ===============================
   PHANTOM GRID
   =============================== */

.phantom-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(70,90,140,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,90,140,0.02) 1px, transparent 1px);
  background-size: 130px 130px;
  opacity: 0.14;
  z-index: 1;
}

/* ===============================
   SPIDER SENTINEL
   =============================== */

.spider-sentinel {
  position: fixed;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.thread {
  width: 1px;
  height: 180px;
  background: linear-gradient(to bottom, #35507a, transparent);
  margin: 0 auto;
}

.spider {
  width: 34px;
  height: 34px;
  background: radial-gradient(circle, #151b26 35%, #000 85%);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(70,100,170,0.35);
}

/* EYES */
.eye {
  position: absolute;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #6fa3ff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(110,160,255,0.8);
  animation: eyePulse 3s infinite;
}

.eye.left { left: 9px; }
.eye.right { right: 9px; }

@keyframes eyePulse {
  0%,100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ===============================
   CORE FRAME
   =============================== */

.core-frame {
  position: relative;
  z-index: 10;
  width: 92%;
  max-width: 1000px;
  margin: 110px auto;
  padding: 60px 50px;
  background: linear-gradient(180deg, #05080f, #0a111d);
  border-radius: 26px;
  box-shadow:
    0 0 100px rgba(0,0,0,0.96),
    inset 0 0 55px rgba(60,90,160,0.06);
}

/* ===============================
   LOGO
   =============================== */

.logo {
  text-align: center;
}

.logo img {
  max-width: 380px;
  filter: drop-shadow(0 0 50px rgba(80,120,220,0.32));
}

.logo-text {
  margin-top: 18px;
  font-size: 26px;
  letter-spacing: 6px;
  color: #d6e1ff;
}

/* ===============================
   GLITCH
   =============================== */

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch::before {
  top: -2px;
  color: #4a78ff;
  animation: glitch1 2.2s infinite;
}

.glitch::after {
  top: 2px;
  color: #9fbaff;
  animation: glitch2 2.8s infinite;
}

@keyframes glitch1 {
  0% { clip-path: inset(0 0 90% 0); }
  50% { clip-path: inset(42% 0 28% 0); }
  100% { clip-path: inset(0 0 90% 0); }
}

@keyframes glitch2 {
  0% { clip-path: inset(85% 0 0 0); }
  50% { clip-path: inset(20% 0 60% 0); }
  100% { clip-path: inset(85% 0 0 0); }
}

/* ===============================
   CHANNEL BUTTONS
   =============================== */

.channels {
  text-align: center;
  margin-top: 45px;
}

.btn.phantom {
  display: inline-block;
  margin: 12px;
  padding: 18px 46px;
  min-width: 220px;
  text-decoration: none;
  color: #d8e4ff;
  letter-spacing: 2px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0c1422, #05080f);
  border: 1px solid #23345a;
  transition: all .25s ease;
}

.btn.phantom:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(90,130,255,0.55);
}

/* ACTIVE */
.btn.active {
  border-color: #6f9cff;
  box-shadow: 0 0 45px rgba(100,150,255,0.85);
  color: #fff;
}

/* ===============================
   FOOTER
   =============================== */

footer {
  margin-top: 75px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: #6c7fa6;
}

/* =========================
   MOBILE FIX
   ========================= */

@media (max-width: 768px) {

  .core-frame {
    margin: 30px 10px;
    padding: 25px 18px;
  }

  .logo img {
    width: 165px;
  }

  .logo-text {
    font-size: 20px;
    letter-spacing: 3px;
  }

  .channels a {
    font-size: 14px;
    padding: 14px;
  }

  footer {
    font-size: 11px;
    margin-top: 30px;
  }
}
