/* Base */

body {
  background: #111;
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
}

/* Layout */

.layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Video */

.video-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container img {
  max-width: 100%;
  max-height: 100%;
  /* transform: scale(-1, -1); */
  /* clip-path: inset(3% 0 0 0); */
}

/* Live badge */

.live-indicator {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(220, 38, 38, 0.95);
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  pointer-events: none;
}

.separator {
  opacity: 0.6;
}

.eye-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Chat */

#chat {
  width: 320px;
  background: #181818;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-left: 1px solid #222;
}

#messages {
  flex: 1;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Stack inputs vertically always */
#chat input {
  background: #222;
  border: none;
  color: white;
  padding: 8px;
  margin-top: 4px;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

#chat input:focus {
  outline: none;
  background: #2a2a2a;
}

/* Mobile responsiveness */

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .video-container {
    height: 55vh;
  }

  #chat {
    width: 100%;
    height: 45vh;
    border-left: none;
    border-top: 1px solid #222;
  }
}

/* Viewer record */
.record-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: gold;
  color: black;
  font-weight: bold;
  border-radius: 8px;
  pointer-events: none;

  animation: pop 1.2s ease-out forwards;
}

.hidden {
  display: none;
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1);
  }
}

