.video-background {
  display: none; /* 最初は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-background iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* フォームを画面右上に配置 */
#video-form {
  display: none; /* 最初は非表示 */
  position: fixed;
  top: 10px;
  right: 10px;
  width: 300px; /* フォームの幅を統一 */
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10;
  box-sizing: border-box;
}

#video-form label {
  display: block;
  margin: 6px 0 2px;
}

#video-form input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: none;
  box-sizing: border-box;
}

#video-form input[type="range"] {
  width: 100%;
  margin: 4px 0 8px;
}

#video-form input[type="checkbox"] {
  margin-right: 4px;
}

#video-form hr {
  border: none;
  border-top: 1px solid #666;
  margin: 8px 0;
}

/* ボタンをまとめるグループ */
#video-form .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

#video-form button {
  flex: none;            /* 文字幅に合わせる */
  min-width: 80px;       /* 小さすぎない幅 */
  padding: 6px 12px;
  white-space: nowrap;
  text-align: center;
  border: none;
  border-radius: 6px;
  background-color: #444;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#video-form button:hover {
  background-color: #666;
}

#video-form button:active {
  transform: scale(0.97);
  background-color: #555;
}