/* 筆記疊字圖層（noteOverlay.js）：掛在 .player 內、標註圖層之下；位置與字級由 JS 依內容區域設定。 */

.note-overlay { position: absolute; z-index: 1; overflow: hidden; pointer-events: none; }
/* 底緣固定在內容區域底上方，不隨控制列顯示或隱藏而移動；多則重疊時 column-reverse 讓較早的在下、較晚的往上疊 */
.note-overlay__stack {
  position: absolute; left: 0; right: 0; bottom: var(--note-overlay-bottom); padding: 0 var(--sp-12);
  display: flex; flex-direction: column-reverse; align-items: center; gap: var(--sp-4);
}
/* 最多 4 行，超過以省略號截斷；半透明底讓文字在任何畫面上都讀得到 */
.note-overlay__item {
  max-width: 90%; padding: var(--sp-4) var(--sp-12); border-radius: var(--r-6); overflow: hidden;
  background: var(--c-black-55); color: var(--c-white); text-align: center; line-height: 1.4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; max-height: calc(1.4em * 4 + var(--sp-8));
}
.note-overlay__item p, .note-overlay__item ul, .note-overlay__item ol, .note-overlay__item blockquote { margin: 0; padding: 0; }
.note-overlay__item ul, .note-overlay__item ol { list-style-position: inside; }
.note-overlay__item a { color: inherit; text-decoration: underline; }
