/* 竖屏: 上图下字, 分开不叠 */
:root {
  /* 原片画面 4:3, 底部约 26% 是硬字幕带. 这里只露出字幕带以上的部分.
     想看整帧(连硬字幕): 把 --keep 改成 1 */
  --keep: 0.74;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: #111; color: #eee; }
body {
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
#screen {
  max-width: 560px; height: 100%; margin: 0 auto;
  display: flex; flex-direction: column; cursor: pointer;
}
#stage {
  width: 100%; aspect-ratio: 4 / calc(3 * var(--keep));
  overflow: hidden; background: #000; flex: none;
}
#img { width: 100%; display: block; }
#text {
  flex: 1; padding: 20px 18px;
  font-size: 20px; line-height: 1.7; letter-spacing: 0.02em;
}
#status {
  flex: none; padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  font-size: 13px; color: #777; display: flex; justify-content: space-between; align-items: center;
}
#right { display: flex; align-items: center; gap: 14px; }
#speed {
  font: inherit; color: #bbb; background: #222; border: 1px solid #333; border-radius: 14px;
  min-width: 56px; padding: 6px 12px; cursor: pointer;
}
#count { font-variant-numeric: tabular-nums; }

/* 字卡: 像电影演职员表那样, 黑底白字居中 */
#screen.card { background: #000; }
#screen.card #stage { display: none; }
#screen.card #text {
  display: flex; align-items: center; justify-content: center; text-align: center;
  white-space: pre-line; color: #fff; font-size: 16px; line-height: 2.3; letter-spacing: 0.12em;
}
