:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#stage {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.pane {
  position: relative;
  flex: 1 1 50%;
  width: 50%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.pane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none; /* no click-to-pause, no scrubbing */
}

.pane-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}

/* Divider between the two panes */
#stage .pane:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
}

#audio-switch {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

#audio-switch button {
  padding: 8px 14px;
  font-size: 13px;
  color: #fff;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

#audio-switch button:hover {
  background: rgba(40, 40, 40, 0.75);
}

#audio-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border-color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

#unmute-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 20;
}

#unmute-overlay.hidden {
  display: none;
}

#unmute-btn {
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 600;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 700px) {
  #stage {
    flex-direction: column;
  }
  .pane {
    width: 100%;
    height: 50%;
  }
  #stage .pane:first-child::after {
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 1px;
  }
}
