/* ---- Screen Share ---- */

#screen-share-container {
  width: 100%;
  max-width: 900px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

#screen-share-container:fullscreen {
  max-width: none;
  border: none;
  border-radius: 0;
  background: #000;
}

#screen-share-container:fullscreen .screen-share-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--overlay-bar);
  opacity: 0;
  transition: opacity 0.3s;
}

#screen-share-container:fullscreen:hover .screen-share-bar {
  opacity: 1;
}

#screen-share-container:fullscreen #screen-share-video {
  width: 100%;
  height: 100vh;
  object-fit: contain;
}

.screen-share-bar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.screen-share-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

#screen-share-video,
#screen-share-canvas {
  width: 100%;
  display: block;
  background: #000;
}

#screen-share-container:fullscreen #screen-share-canvas {
  width: 100%;
  height: 100vh;
  object-fit: contain;
}

.screen-share-stats {
  color: var(--stats);
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 11px;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.screen-fullscreen-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.screen-fullscreen-btn:hover {
  background: var(--bg-elevated-hover);
}
