/* Base Layout */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #00ff99;
}

/* Room Info */
#room-info {
  padding: 1rem;
  border-radius: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
}

#room-info input {
  padding: 0.6rem 1rem;
  background-color: #2c2c2c;
  border: 1px solid #00ff99;
  border-radius: 0.5rem;
  color: white;
}

#room-info input::placeholder {
  color: #aaa;
}

#room-info button {
  background-color: #00ff99;
  color: #000;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

/* Control Buttons */
#control-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Reusable Button Styling */
button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: #00ff99;
  color: #000;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover:not(:disabled) {
  background-color: #00cc7a;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Video Styling */
video {
  width: 100%;
  max-height: 400px;
  background-color: #000;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 0 12px rgba(0, 255, 153, 0.25);
}

/* Current Speaker Section */
#current-speaker .current-video-container {
  background-color: #1e1e1e;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.15);
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  position: relative;
}

.username {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
  background-color: rgba(0, 255, 153, 0.7);
  padding: 5px 0;
  border-radius: 0 0 0.5rem 0.5rem;
}

.viewer-count {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1rem;
  color: #ffffff;
  background-color: rgba(0, 255, 153, 0.7);
  padding: 5px 10px;
  border-radius: 0.5rem;
}

/* Local Media */
#local-media {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-top: 1rem;
}

#local-video-left {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid #00ff99;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  #room-info {
    flex-direction: column;
    align-items: center;
  }

  #control-buttons {
    flex-direction: column;
    align-items: center;
  }

  #current-speaker .current-video-container {
    height: auto;
  }

  video {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  #room-info input,
  #room-info button {
    width: 100%;
    max-width: 90%;
  }

  button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

