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

:root { color-scheme: dark; }

html, body { height: 100%; background: #000; font-family: "gg sans", system-ui, sans-serif; }

main {
  /* mesmo layout do player do site (#stage), que mostra o quadro inteiro sem cortar */
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#overlay {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #80848e;
  flex: none;
}

.dot.on {
  background: #f23f43;
  box-shadow: 0 0 0 0 rgba(242, 63, 67, 0.7);
  animation: pulse 1.8s infinite;
}

#viewers { color: #b5bac1; font-weight: 500; }
#viewers:not(:empty)::before { content: "·"; margin-right: 8px; color: #80848e; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 63, 67, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(242, 63, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 63, 67, 0); }
}

#bar {
  position: absolute;
  /* sobe pra não ficar atrás da barra de controle do Discord no modo tela cheia */
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

#mute {
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

#vol {
  width: 120px;
  accent-color: #5865f2;
  cursor: pointer;
}
