/* ==================================================================
   生物圈動畫｜精簡版面（2026-10-30，老師指示：按鍵縮小、和動畫同一個畫面）
   外層加法：載入在 biosphere_cinema_1011_v1.css 之後，只調整「版面與按鈕大小」，
   不動畫布內容、不動動畫時間軸、不動任何文字內容。
   ・頁內：標題＋鏡頭鈕＋播放列併成兩條小工具列，舞台依視窗高度縮放，一屏看得到動畫與按鈕
   ・全螢幕：左側欄與按鈕縮小，舞台拿到更大面積
   ・說明文字（舞台下方）維持 22px
   ================================================================== */

/* ---------- 頁內（非全螢幕） ---------- */
.bc-shell:not(.bc-full) {
  display:grid; grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"head head" "shots tool" "view view" "src src";
  column-gap:10px; row-gap:8px; padding:10px 12px; margin:12px auto;
}
.bc-shell:not(.bc-full) > .bc-heading { grid-area:head; margin:0; }
.bc-shell:not(.bc-full) > .bc-shots { grid-area:shots; margin:0; gap:6px; align-self:center; }
.bc-shell:not(.bc-full) > .bc-transport { grid-area:tool; padding:0; gap:8px; flex-wrap:nowrap; align-self:center; justify-content:flex-end; }
.bc-shell:not(.bc-full) > .bc-teachbar { grid-area:tool; align-self:center; min-width:min(380px,100%); }
.bc-shell:not(.bc-full) > .bc-view { grid-area:view; }
.bc-shell:not(.bc-full) > .bc-sources { grid-area:src; margin-top:2px; padding-top:6px; }

.bc-shell .bc-heading h3 { font-size:20px; line-height:1.3; }
.bc-shell button { min-height:34px; padding:3px 10px; font-size:15px; border-radius:8px; }
.bc-shell .bc-shot { min-height:34px; padding:3px 6px; font-size:15px; }
.bc-shell .bc-play { min-width:112px; }
.bc-shell .bc-transport button { white-space:nowrap; flex:0 0 auto; }
.bc-shell .bc-slider-label { flex:0 1 150px; min-width:90px; }
.bc-shell .bc-slider-label > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.bc-shell .bc-timeline { height:24px; }
.bc-shell .bc-clock { font-size:13px; white-space:nowrap; }
.bc-shell .bc-sources summary { min-height:26px; font-size:14px; }

/* 舞台：寬度同時受「版面寬」與「視窗高度」限制，讓工具列＋舞台一屏放得下（16:9 不變形） */
.bc-shell:not(.bc-full) .bc-stage {
  width:min(100%, 960px, calc((100vh - 150px) * 1.77778));
  width:min(100%, 960px, calc((100dvh - 150px) * 1.77778));
  margin-inline:auto;
}
/* 說明：字級不變（22px），只收緊留白 */
.bc-shell:not(.bc-full) .bc-caption { margin-top:8px; padding:8px 14px; }
.bc-shell:not(.bc-full) .bc-caption h4 { margin-bottom:4px; }
.bc-shell:not(.bc-full) .bc-probe-tools { margin-top:6px; }
.bc-shell .bc-probe-tools button { min-height:32px; font-size:15px; }

/* ---------- 全螢幕 ---------- */
.bc-full { gap:10px; grid-template-columns:150px minmax(0,1fr); }
.bc-full .bc-shots { gap:6px; }
.bc-full .bc-shot { padding:6px 6px; min-height:36px; }
.bc-full .bc-heading h3 { font-size:20px; }
.bc-full .bc-transport { gap:6px; }
.bc-full .bc-teachbar { grid-column:1; grid-row:3; align-self:end; }
@media (min-width:1300px) { .bc-full { grid-template-columns:180px minmax(0,1fr); } }

/* ---------- 窄螢幕 ---------- */
@media (max-width:760px) {
  .bc-shell:not(.bc-full) { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "shots" "tool" "view" "src"; }
  .bc-shell:not(.bc-full) > .bc-transport { flex-wrap:wrap; justify-content:flex-start; }
  .bc-shell:not(.bc-full) > .bc-teachbar { min-width:0; }
  .bc-shell:not(.bc-full) .bc-stage { width:min(100%, calc((100dvh - 190px) * 1.77778)); }
  .bc-shell .bc-slider-label { flex:1 1 120px; }
}

/* ---------- 老師講解模式：學生專用的播放列收起來，改用 .bc-teachbar ---------- */
.bc-teachbar { display:none; }
body.mode-teacher .bc-teachbar { display:flex; }
body.mode-teacher .bc-shell > .bc-transport { display:none; }
