/* navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 20px;

  background: #1572ec;

  color: white;
  z-index: 1000;

  box-shadow: 0 5px 8px rgba(0,0,0,0.2);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#navbar-icon {
  width: 28px;
  height: 28px;
}

/* main area */
.main-box {
  margin: 0px auto;
  width: 1280px;
  height: 795px;
  display: flex;

  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* video area in main area */
.video-container {
  position: relative;
  width: 1280px;
  height: 720px;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  color: #bbb;

  background: rgba(0, 0, 0, 0.3); /* 半透明遮罩 */
  pointer-events: none; /* 不挡住 video 控件 */
}

.hidden {
  display: none;
}

/* steam info area in main area */
.stream-info{
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 80px;
  padding: 0 14px;

  border-top: 1px solid #eee;
}

.stream-info-left{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 15px;
}

.streamer-avatar{
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.streamer-name{
  font-weight: 600;
}

.stream-info-right {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #888888;
  margin-right: 2px;
}

#viewer-number {
  display: flex;
  transition: all 0.3s ease;
}


body {
  padding-top: 52px;
}

#footer {
  position: fixed;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #666;
}