/* ===============================
   PRO STYLE — HAKER333 (FIXED)
=============================== */

/* === RESET OVERRIDES === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
}

/* ===============================
   BACKGROUND VIDEO
=============================== */
video.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(.85) contrast(1.05);
  pointer-events: none;
}

/* ===============================
   OVERLAY
=============================== */
#overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,255,255,.12), transparent 55%),
    rgba(0,0,0,.55);
  z-index: -1;
  pointer-events: none;
}

/* ===============================
   MAIN CENTERING
=============================== */
#main {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 🔥 ФИКС КЛИКОВ */
  pointer-events: none;
}

/* ===============================
   RGB TITLE
=============================== */
.copy {
  font-family: fanta1, sans-serif;
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  letter-spacing: .45em;
  margin-bottom: 42px;
  text-transform: uppercase;
  animation: rgbGlow 6s linear infinite;
  transition: color .2s, text-shadow .2s;
}

@keyframes rgbGlow {
  0%   { color:#00f6ff; text-shadow:0 0 18px #00f6ff; }
  33%  { color:#ff3cff; text-shadow:0 0 22px #ff3cff; }
  66%  { color:#00ff88; text-shadow:0 0 22px #00ff88; }
  100% { color:#00f6ff; text-shadow:0 0 18px #00f6ff; }
}

/* ===============================
   SOCIAL BLOCK
=============================== */
#header {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

#header nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  padding: 0;
  margin: 0;
}

/* ===============================
   BIG BUTTON BASE
=============================== */
#header nav a,
#unmutevideo {
  width: 72px;
  height: 72px;
  font-size: 30px;
  border-radius: 18px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    color .25s ease;
  pointer-events: auto;
}

#header nav a:hover,
#unmutevideo:hover {
  transform: translateY(-6px) scale(1.05);
}

/* ===============================
   VK
=============================== */
.icon-social-vkontakte {
  color: #4c75a3;
  box-shadow: 0 0 22px rgba(76,117,163,.6);
}
.icon-social-vkontakte:hover {
  box-shadow: 0 0 42px rgba(76,117,163,1);
}

/* ===============================
   DISCORD
=============================== */
.fa-discord {
  color: #e8f0ff;
  box-shadow: 0 0 24px rgba(88,101,242,.65);
}
.fa-discord:hover {
  box-shadow: 0 0 44px rgba(88,101,242,1);
}

/* ===============================
   YOUTUBE
=============================== */
.fa-youtube {
  color: #ff2d2d;
  box-shadow: 0 0 26px rgba(255,45,45,.8);
}
.fa-youtube:hover {
  box-shadow: 0 0 48px rgba(255,45,45,1);
}

/* ===============================
   SOUND BUTTON
=============================== */
#unmutevideo {
  border: none;
  background: rgba(0,0,0,.45);
}

/* SOUND ON */
#unmutevideo.sound-on {
  color: #b86bff;
  box-shadow: 0 0 26px rgba(184,107,255,.8);
}

/* SOUND OFF */
#unmutevideo.sound-off {
  color: #ff3c3c;
  box-shadow: 0 0 30px rgba(255,60,60,.95);
  text-decoration: line-through;
}

/* ===============================
   TIME (BOTTOM)
=============================== */
.time {
  position: fixed;
  bottom: 18px;
  right: 24px;
  font-size: .95rem;
  opacity: .8;
  font-family: fanta, monospace;
  pointer-events: none;
}

/* ===============================
   INTRO FIX
=============================== */
#intro {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity .8s ease, visibility .8s ease;
}

#intro.hide {
  opacity: 0;
  visibility: hidden;
}

.intro-logo {
  font-family: fanta1;
  font-size: 3rem;
  color: #00f6ff;
  text-shadow: 0 0 18px #00f6ff;
}

/* ===============================
   SOCIAL BUTTONS
=============================== */
.social-btn {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s;
  box-shadow: inset 0 0 12px rgba(255,255,255,.04);
  pointer-events: auto;
}

.social-btn:hover {
  transform: translateY(-6px) scale(1.08);
}

/* ===============================
   TELEGRAM SOCIAL
=============================== */
.social-btn.telegram {
  color: #2aa9e0;
}

.social-btn.telegram:hover {
  box-shadow:
    0 0 22px rgba(42,169,224,.75),
    inset 0 0 14px rgba(42,169,224,.25);
  color: #7fd6ff;
}

/* ===============================
   WAVES
=============================== */
.wave {
  position: absolute;
  bottom: -22px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.wave span {
  width: 6px;
  height: 12px;
  border-radius: 4px;
  background: cyan;
  transition: height .1s linear;
}

/* ===============================
   TELEGRAM CHAT BUTTON
=============================== */
#tg-chat-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #00ffb3;
  border-radius: 50%;
  box-shadow: 0 0 20px #00ffb3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;

  z-index: 100000;
  pointer-events: auto;
}

/* ===============================
   TELEGRAM CHAT BOX
=============================== */
#tg-chat-box {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 330px;
  height: 460px;
  background: #050505;
  border-radius: 18px;
  display: none;
  box-shadow: 0 0 30px #00ffb3;
  overflow: hidden;

  z-index: 99999;
  pointer-events: auto;
}

#tg-chat-box.open {
  display: block;
}

#tg-chat-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.tg-chat-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  font-family: fanta1;
}

.tg-chat-inner a {
  padding: 12px 22px;
  border-radius: 14px;
  background: #00ffb3;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 20px #00ffb3;
}

/* ===============================
   PARALLAX LAYERS
=============================== */

video.bg {
  will-change: transform;
  transition: transform 0.08s linear;
}

.copy {
  will-change: transform;
}

#header {
  will-change: transform;
}

/* ===============================
   RGB DEV PANEL (SECRET)
=============================== */

#rgb-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 260px;
  padding: 18px;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(0,255,255,.35);
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0,255,255,.35);
  font-family: fanta1, monospace;
  color: #00f6ff;
  z-index: 200000;
  display: none;
  backdrop-filter: blur(12px);
}

#rgb-panel h3 {
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: .15em;
}

#rgb-panel label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
}

#rgb-panel input[type="range"] {
  width: 100%;
}

#rgb-panel button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: #00f6ff;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 18px #00f6ff;
}

#video-controls {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

/* кнопки */
#video-controls button {
    background: rgba(0, 255, 180, 0.15);
    border: 1px solid rgba(0, 255, 180, 0.5);
    color: #00ffcc;
    font-size: 18px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

#video-controls button:hover {
    background: rgba(0, 255, 180, 0.35);
}

/* полоса */
#progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* прогресс */
#progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ffc6, #00ff88);
    box-shadow: 0 0 10px #00ffc6;
    transition: width 0.1s linear;
}

/* === VIDEO CONTROLS FIX === */
#overlay {
    pointer-events: none;
}

#video-controls {
    z-index: 99999;
    pointer-events: auto;
}

#background {
    pointer-events: none;
}

#main {
    pointer-events: none;
}

#video-controls * {
    pointer-events: auto;
}

/* Заголовок */
.copy {
    text-align: center;
    font-size: 64px;
    letter-spacing: 8px;
    color: #7aa7ff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(120, 160, 255, 0.6);
}

/* Контейнер названия трека */
.player-info {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

/* Название трека */
#track-title {
    font-size: 18px;
    font-weight: 600;
    color: #00ffc6;
    text-align: center;
    letter-spacing: 0.5px;

    text-shadow:
        0 0 5px rgba(0, 255, 200, 0.6),
        0 0 10px rgba(0, 255, 200, 0.5),
        0 0 20px rgba(0, 255, 200, 0.4);

    animation: glowPulse 2s infinite ease-in-out;
}

/* Анимация свечения */
@keyframes glowPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.social-btn.game {
    background: #0d0d0d;
    transition: 0.25s ease;
}

.social-btn.game i {
    color: #ff9500;
    font-size: 22px;
    transition: 0.25s ease;
}

.social-btn.game:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 149, 0, 0.8);
}

.social-btn.game:hover i {
    text-shadow: 0 0 10px rgba(255, 149, 0, 1);
}

#fps-box {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 255, 180, 0.08);
  border: 1px solid rgba(0, 255, 180, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 180, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 13px;
  color: #00ffc6;
  z-index: 9999;
  text-align: left;
}

#stats-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 200, 0.12);
    border: 1px solid #00ffc8;
    border-radius: 10px;
    padding: 10px 14px;
    color: #00ffc8;
    font-family: monospace;
    font-size: 14px;
    box-shadow: 0 0 15px #00ffc8;
}

#online-box {
    position: fixed;
    top: 25px; /* тот же уровень что и FPS */
    right: 150px; /* ← двигаем влево от FPS */

    background: rgba(0, 255, 200, 0.12);
    border: 1px solid #00ffc8;
    border-radius: 10px;
    padding: 8px 14px;
    color: #00ffc8;
    font-family: monospace;
    font-size: 14px;
    box-shadow: 0 0 15px #00ffc8;
}


