html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: black;
  font-family: sans-serif;
  overflow-x: hidden;
}

.background-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.04), rgba(0,0,0,0));
  z-index: -2;
  pointer-events: none;
}

#radioTitle {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 5;
  font-family: 'Segoe UI', sans-serif;
}

canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 320px;
  height: 320px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  z-index: 2;
  transition: background 0.3s ease, transform 0.1s ease;
  box-shadow: 0 0 30px rgba(0,255,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-button img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.center-button i {
  z-index: 2;
  color: white;
  font-size: 80px;
  pointer-events: none;
}

.center-button.play:hover {
  background: green;
}

.center-button.pause:hover {
  background: red;
}

.circle-visualizer {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed limegreen;
  animation: pulse 2s infinite ease-in-out;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
}

#mobilePrompt {
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  text-align: center;
  padding: 20px;
}

.floating-button {
  position: fixed;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #111;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#chatButton { right: 20px; }
#infoButton { right: 100px; }

.floating-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 280px;
  background: rgba(0,0,0,0.9);
  color: white;
  border-radius: 10px;
  z-index: 15;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.floating-window.hidden {
  display: none;
}

.chat-header {
  padding: 10px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chat-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-body input,
.chat-body textarea {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 5px;
  resize: none;
}

.chat-body button {
  padding: 8px;
  background: limegreen;
  border: none;
  color: white;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.chat-body ul {
  list-style: none;
  padding-left: 0;
}

.chat-body li a {
  color: #1e90ff;
  text-decoration: none;
}

.chat-body li a:hover {
  text-decoration: underline;
}

.chat-body small {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  margin-top: 10px;
}

/* 🔽 RESPONSIVE FIXES PARA MÓVIL */
@media (max-width: 600px) {
  .center-button {
    width: 220px;
    height: 220px;
  }

  .center-button i {
    font-size: 50px;
  }

  .circle-visualizer {
    width: 100px;
    height: 100px;
  }

  #radioTitle {
    font-size: 1.2rem;
    top: 10px;
  }

  .floating-window {
    width: 100vw;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
}


