* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
}

/* --- オシロスコープ／レイアウト --- */
.main-controls {
  padding: 0;
  flex-shrink: 0;
}

/* オシロ表示 */
.visualizer {
  display: block;
  width: 100%;
  background: #ddd;
  margin-bottom: 0.5rem;
}

/* 録音ボタン：Bootstrapで制御するため独自色は削除 */
#buttons {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

/* 録音中の色だけ追加（Bootstrap danger を上書きしない） */
#recordToggle.recording {
  background-color: #dc3545 !important; /* Bootstrap danger */
  border-color: #dc3545 !important;
}

/* --- 録音リスト（スクロール） --- */
.sound-clips {
  flex-grow: 1;
  overflow-y: auto;
  min-height: 0;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

/* --- 録音クリップ --- */
.clip {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.clip-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.clip-title {
  flex: 1;
  word-break: break-word;
  font-weight: bold;
  min-width: 0;
}

/* --- ボタン群（削除・DL・UP） --- */
.clip-buttons {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.clip-buttons .btn {
  width: 42px;
  height: 42px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-buttons i {
  font-size: 1.4rem;
}

/* audio コントロール */
.clip audio {
  width: 100%;
  height: 38px;
}

/* --- アイコン回転（アップロード中） --- */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
