/* Part 1 用の追加スタイル(基本は Part 5 と同じ base.css) */
.player { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.play-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
}
.play-btn:hover { background: var(--accent-dark); }
.play-btn.is-playing { background: var(--surface-2); color: var(--ink-2); }
.play-icon { font-size: 18px; }
.play-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.play-progress-bar { height: 100%; width: 0; background: var(--accent); }

.choice .choice-text { color: var(--ink); }
.choices { grid-template-columns: 1fr; }

.tr-line { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; }
.tr-line .tr-en { display: block; color: var(--ink); font-weight: 600; }
.tr-line .tr-ja { display: block; color: var(--ink-2); font-size: 14px; }
.tr-line.is-answer .tr-en { color: var(--good); }
.seg-play {
  flex: 0 0 auto; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--accent-dark);
  font-size: 12px; cursor: pointer;
}
.seg-play:hover { background: var(--accent-wash); }
.flag { width: 26px; height: 13px; vertical-align: -1px; border: 1px solid var(--border); border-radius: 2px; object-fit: fill; }
#speakers .spk { white-space: nowrap; }
.tr-line .flag { margin-right: 2px; }
#speakers .sep { color: var(--muted); margin: 0 4px; }
.foot-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.henka-badge { color: var(--pop-dark); background: var(--pop-wash); border-color: var(--pop); }
/* 英文が出ていないときは、記号をボタンの中央に置く */
.choice.is-letter-only { justify-content: center; }
/* 問題タイプのタグは1つずつ別の枠で出す(並びは他のバッジと同じ行に流す) */
.tag-group { display: contents; }
.choice-line .mistake-ja { display: block; color: var(--ink-2); font-size: 13px; }
/* スマホでは解説欄の見出し(ポイント・英文と訳・解説)を本文の上に置き、本文を横幅いっぱいに使う */
@media (max-width: 600px) {
  .explain-row { grid-template-columns: 1fr; gap: 4px; }
  .explain-label { padding-top: 0; }
}
/* レート戦: 音声が流れている間の表示と、結果画面の英文・訳 */
.rated-hud-state { font-size: 12px; font-weight: 800; color: var(--accent-dark); margin-right: 6px; }
.rated-detail-en { display: block; }
.rated-detail-ja { display: block; color: var(--ink-2); font-size: 13px; }
.rated-detail-replay { margin: 10px 0 6px; }
/* レート戦の音声は1回だけ。流れ始めたら再生ボタンは消し、下の進み具合のバーだけ残す */
body.is-rated-playing #playBtn:disabled { display: none; }
/* レート戦の結果: 質問・応答A〜Cを個別に再生するボタン */
.rated-detail .seg-play { width: 26px; height: 26px; margin: 0 6px 0 0; font-size: 11px; vertical-align: middle; }
.rated-detail-choice .seg-play { margin: 0; align-self: center; }
/* ランキング: 通報とブロックを縦に並べる */
.rating-lb-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
/* 戦歴(ランキングで開いた人の記録) */
.rating-lb-row.is-tappable { cursor: pointer; }
.rating-lb-row.is-tappable:hover { background: var(--surface-2); }
.rating-lb-row.is-me.is-tappable:hover { background: var(--accent-wash); }
.rating-lb-row.is-tappable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rating-player-head { margin: 0 0 6px; }
.rating-player-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; overflow-wrap: anywhere; }
.rating-player-xname { margin-left: 4px; font-size: 13px; }
.rating-player-app { margin-top: 18px; }
.rating-player-app-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; padding-left: 8px; border-left: 4px solid var(--accent); }
.rating-private { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.rating-private input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rating-player-head .rating-lb-x { width: auto; padding: 0 8px; }
.rating-lb-hint { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.rating-player-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.rating-player-actions .rating-field-hint { flex-basis: 100%; }
.rating-player-other { display: block; text-align: center; text-decoration: none; margin-top: 4px; }

/* 写真 */
.photo-wrap { margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.photo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.tr-line .tr-en { overflow-wrap: anywhere; }
.mistake-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; filter: grayscale(1); margin-bottom: 8px; }
.rated-detail-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; filter: grayscale(1); margin: 4px 0 8px; }
/* レート戦中は、写真を小さめにして解答欄が画面に収まるようにする */
body.is-rated-playing .photo-wrap { aspect-ratio: 16 / 9; margin-bottom: 8px; }
