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

body {
  font-family: Arial, sans-serif;
  background: #0f0f10;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(90deg, #6c63ff, #21cbf3);
  padding: 15px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.controls {
  background: #1a1a1d;
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.controls input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
  width: 200px;
}

.controls button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background: #6c63ff;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.controls button:hover {
  background: #21cbf3;
}

.favorites {
  background: #141414;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.favorites button {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  background: #21cbf3;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.favorites button:hover {
  background: #6c63ff;
}

.streams {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 10px;
  padding: 10px;
}

.stream-container {
  background: #1e1e22;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.stream-container iframe {
  width: 100%;
  height: 250px;
  border: none;
}

.remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/* Chat Flutuante */
#chatBox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  height: 600px;
  background: #1e1e22;
  border: 2px solid #6c63ff;
  border-radius: 10px;
  overflow: hidden;
  display: none;
  z-index: 999;
}

#chatBox iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#toggleChat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  border: none;
  border-radius: 50px;
  background: #6c63ff;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

@media (max-width: 768px) {
  .controls input {
    width: 100%;
  }
  #chatBox {
    width: 90%;
    height: 50%;
  }
}