:root {
  color-scheme: dark;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #0b0b10;
  color: #e8e8f0;
  font-family: system-ui, sans-serif;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#share-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #15151c;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

#link-input {
  flex: 1;
  background: #0b0b10;
  color: #e8e8f0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}

#share-btn {
  background: #ff5f1f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#share-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#share-status {
  font-size: 12px;
  opacity: 0.75;
  padding: 0 12px;
  min-height: 16px;
  flex-shrink: 0;
}

main#app > #status {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.7;
}

#player-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: black;
}

#player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

#overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  pointer-events: none;
}

#title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

#live-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff4d4d;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

#unmute {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

#start-gate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
