/* ---- 字幕結果エリア ---- */
.subtitle-result {
  margin-top: 1.5rem;
}

/* 日本語翻訳を大きく左寄せで表示 */
.subtitle-box {
  font-size: 2rem;
  line-height: 1.9;
  text-align: left;
  background: #111;
  color: #f0f0f0;
  padding: 1.5rem 2rem;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ネパール語原文は折りたたみ */
.subtitle-original {
  margin-top: 0.75rem;
}

.subtitle-original summary {
  cursor: pointer;
  font-size: 0.875rem;
  color: #555;
  user-select: none;
}

.subtitle-original p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

/* エラー表示 */
.subtitle-error {
  color: #c00;
  margin-top: 1rem;
}

/* ---- ライブ字幕リスト (Phase 4a) ---- */
.subtitle-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- /live: 録音ボタンだけ画面上部に固定 ---- */
.live-body {
  margin: 0;
  /* 固定ボタンバーの高さ分、コンテンツを下にずらして重なりを防ぐ */
  padding-top: 76px;
}

.live-controls {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  height: 76px;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}

.live-controls button {
  flex: 1;
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
}

.live-content {
  padding: 1.5rem;
}

.live-content h1 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.live-content select {
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
}

@media (max-width: 600px) {
  .live-content {
    padding: 1rem;
  }
}

/* ---- 字幕表示専用ページ (Phase 4b /display) ---- */
.display-body {
  margin: 0;
  background: #000;
}

.display-subtitle-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.display-subtitle-box {
  font-size: 4rem;
  line-height: 1.6;
  text-align: left;
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- デバッグバー ---- */
.display-debug-bar {
  padding: 0.5rem 2rem;
  background: #111;
  color: #aaa;
  font-size: 0.875rem;
}

.display-debug-bar label {
  cursor: pointer;
  user-select: none;
}

/* ---- STTデバッグ表示 ---- */
.display-stt-details {
  margin-top: 0.5rem;
}

.display-stt-details summary {
  cursor: pointer;
  font-size: 1rem;
  color: #aaa;
  user-select: none;
}

.display-stt-details p {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  color: #888;
  line-height: 1.5;
}

/* ---- 評価画面 /evaluate ---- */
.eval-form {
  max-width: 760px;
}

.eval-mode {
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.eval-mode legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.eval-mode label {
  margin-right: 1.5rem;
  cursor: pointer;
}

.eval-input-section {
  margin-bottom: 1rem;
}

.eval-input-section label {
  display: block;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}

.eval-input-section textarea {
  width: 100%;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}

.eval-columns {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.eval-col {
  flex: 1;
  min-width: 0;
}

.eval-box {
  background: #111;
  color: #f0f0f0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 3rem;
}

.eval-box--reference {
  background: #2a2a2a;
  color: #bbb;
  font-size: 0.95rem;
}

.eval-label {
  font-size: 0.8rem;
  color: #888;
  margin: 0.75rem 0 0.25rem;
}

.eval-label--primary {
  font-size: 1rem;
  font-weight: bold;
  color: #ccc;
}

.eval-box--primary {
  font-size: 1.75rem;
  font-weight: bold;
  padding: 1.25rem 1.5rem;
}

.eval-accuracy-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.usability-badge {
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.usability-badge--usable {
  background: #1e4620;
  color: #7fdb8a;
}

.usability-badge--review {
  background: #4a3d12;
  color: #e8c96a;
}

.usability-badge--poor {
  background: #4a1e1e;
  color: #f08a8a;
}

.eval-note {
  font-size: 0.75rem;
  color: #888;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.5;
}

.eval-sub-metrics {
  display: flex;
  gap: 1rem;
}

.eval-sub-metric {
  background: #1a1a1a;
  color: #aaa;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.eval-sub-label {
  color: #888;
}

.eval-sub-value {
  font-weight: bold;
  color: #ddd;
}

.eval-error {
  color: #c00;
  margin-top: 0.5rem;
}
