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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f2f5;
  color: #1c1e21;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 20px; */
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 10px;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.btn {
  background: #1877f2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-secondary {
  background: #42b883;
}

.btn-secondary:hover {
  background: #369870;
}

.btn-danger {
  background: #e74c3c;
}

.btn-danger:hover {
  background: #c0392b;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1c1e21;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.nav-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.live-room {
  border: 1px solid #dddfe2;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.live-room:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.live-room.live {
  border-left: 4px solid #e74c3c;
}

.live-room h3 {
  color: #1c1e21;
  margin-bottom: 10px;
}

.live-room .streamer {
  color: #1877f2;
  font-weight: 600;
}

.live-room .viewers {
  color: #606770;
  font-size: 14px;
}

.live-room .time {
  color: #606770;
  font-size: 14px;
}

.video-container {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  /* margin-bottom: 20px; */
}

.video-container video {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* .live-indicator {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e74c3c;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  animation: pulse 2s infinite;
} */

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* .viewer-count {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
} */

.chat-container {
  height: 400px;
  /* border: 1px solid #dddfe2; */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  /* padding: 15px; */
  background: #f8f9fa;
}

.chat-message {
  /* margin-bottom: 15px; */
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message .username {
  font-weight: 600;
  color: #1877f2;
  margin-bottom: 3px;
}

.chat-message .message {
  color: #1c1e21;
  line-height: 1.4;
}

.chat-message .time {
  color: #606770;
  font-size: 12px;
  margin-top: 3px;
}

.chat-input-container {
  display: flex;
  padding: 15px;
  /* background: white;
  border-top: 1px solid #dddfe2; */
}

.chat-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #dddfe2;
  border-radius: 20px;
  font-size: 14px;
  margin-right: 10px;
}

.chat-input:focus {
  outline: none;
  border-color: #1877f2;
}

.chat-send {
  background: #1877f2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-send:hover {
  background: #166fe5;
}

.stream-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.live {
  background: #e74c3c;
  animation: pulse 2s infinite;
}

.status-indicator.offline {
  background: #606770;
}

.room-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.room-info h3 {
  color: #1c1e21;
  margin-bottom: 10px;
}

.room-info p {
  color: #606770;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .container {
    /* padding: 10px; */
  }
  
  .header h1 {
    font-size: 2em;
  }
  
  .nav-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .video-container video {
    height: 250px;
  }
  
  .chat-container {
    height: 300px;
  }
}