* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1a1a1a;
  font-family: Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}

.container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

h1 {
  color: #fff;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.video-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
}

.video-link {
  padding: 20px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  transition: background 0.3s;
  border: 2px solid #555;
}

.video-link:hover {
  background: #555;
  border-color: #fff;
}

.chaos-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #555;
}

.chaos-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ff006e, #fb5607);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  border: 2px solid #ff006e;
  transition: all 0.3s;
  cursor: pointer;
}

.chaos-button:hover {
  background: linear-gradient(135deg, #fb5607, #ff006e);
  border-color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
}

.video-button {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35vw;
  height: 15vh;
  background: transparent;
  border-radius: 8px;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.video-button:hover {
  transform: translateX(-50%) scale(1.05);
}

.button-text {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  z-index: 9999;
  text-align: center;
  pointer-events: none;
}

.admin-button {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.3s, background 0.3s;
  z-index: 9999;
  cursor: pointer;
}

.admin-button:hover {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.effect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 100, 255, 0.5) 0%, transparent 70%);
  opacity: 0;
  z-index: 999;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.effect-overlay.active {
  animation: pulse-effect 0.8s ease-out forwards;
}

@keyframes pulse-effect {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 500;
  pointer-events: none;
}

.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0.8;
}

.particle.glow {
  animation: particle-float 1.5s ease-out forwards;
  box-shadow: 0 0 10px rgba(255, 100, 255, 0.8);
}

@keyframes particle-float {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.2);
  }
}

body.video-selected {
  animation: screen-glitch 0.6s ease-out;
}

@keyframes screen-glitch {
  0%, 100% {
    filter: brightness(1);
  }
  25% {
    filter: brightness(1.2) hue-rotate(10deg);
  }
  50% {
    filter: brightness(0.9) hue-rotate(-10deg);
  }
  75% {
    filter: brightness(1.1) hue-rotate(5deg);
  }
}

.video-link.activated {
  animation: link-burst 0.6s ease-out;
  background: linear-gradient(135deg, #ff006e, #fb5607);
  box-shadow: 0 0 30px rgba(255, 0, 110, 0.8), inset 0 0 20px rgba(255, 100, 255, 0.5);
}

@keyframes link-burst {
  0% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.8), inset 0 0 20px rgba(255, 100, 255, 0.5);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(255, 0, 110, 1), inset 0 0 30px rgba(255, 100, 255, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.6), inset 0 0 15px rgba(255, 100, 255, 0.3);
  }
}
