.recording-page { background: #eeefe8; }
.recording-header { width: min(1420px, calc(100% - 64px)); margin: 24px auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.recording-header > a { font-size: 12px; color: var(--green); }
.recording-header > div { margin-right: auto; }
.recording-header h1 { font: 500 20px/1.5 var(--sans); margin: 0; letter-spacing: 0; }
.recording-header p { font-size: 11px; color: #7a8472; margin: 3px 0 0; }
.recording-size { font-size: 11px; color: #77836c; white-space: nowrap; }
.recording-workspace { width: min(1420px, calc(100% - 64px)); margin: 0 auto 28px; }
.recording-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 14px; }
.recording-controls label, .recording-navigation label { display: flex; align-items: center; gap: 10px; color: #7d8774; font-size: 11px; }
.recording-controls select, .recording-navigation select { font: inherit; color: var(--ink); background: #fbfcf6; border: 1px solid #d5ddcd; border-radius: 4px; padding: 7px 10px; max-width: 220px; }
.recording-options { display: flex; gap: 9px; }
.recording-options button, .recording-navigation button { background: #f9faf4; padding: 7px 13px; font-size: 11px; border: 1px solid #d5ddcd; border-radius: 4px; }
.recording-options button[aria-pressed="true"] { color: var(--green); border-color: #bdcfb1; background: #e4ebdd; }
.recording-options .recording-fullscreen { color: white; background: var(--green); border-color: var(--green); }
.video-stage { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; background: #f7f6f0; box-shadow: 0 8px 30px #223e2912; }
.video-stage:fullscreen { width: 100vw; height: 100dvh; background: #17231b; box-shadow: none; cursor: none; }
.video-canvas { width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--video-scale, .5)); transform-origin: center; overflow: hidden; background: var(--paper); }
.video-brand { position: absolute; top: 63px; left: 100px; display: flex; gap: 15px; align-items: center; font-size: 22px; font-weight: 600; letter-spacing: .12em; }
.video-seal { display: grid; place-items: center; background: var(--rust); color: var(--paper); border-radius: 2px; width: 37px; height: 42px; font: 29px/1 var(--serif); transform: rotate(-3deg); }
.video-brand > span:last-child { color: #808976; font-size: 18px; font-weight: 400; letter-spacing: .02em; margin-left: 10px; }
.video-series { position: absolute; top: 74px; right: 100px; color: #4a694a; font-size: 20px; letter-spacing: .12em; }
.video-series span { color: #8b927d; font-size: 16px; letter-spacing: .04em; margin-left: 22px; }
.video-body { position: absolute; left: 100px; right: 100px; top: 176px; bottom: 150px; display: grid; grid-template-columns: 355px minmax(0,1fr); gap: 90px; }
.video-sidebar { position: relative; border-right: 1px solid #dce0d1; padding-right: 44px; }
.video-era { font-size: 15px; color: #929c86; letter-spacing: .18em; margin: 0 0 11px; }
.video-year { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; color: var(--green); }
.video-year > span { font-size: 18px; letter-spacing: .15em; }
.video-year > b { font: 500 104px/1.1 var(--serif); letter-spacing: -.03em; }
.video-sidebar h2 { font-size: 40px; line-height: 2.2; letter-spacing: .04em; }
.video-sidebar h2 rt { color: #6d8060; font-size: .42em; }
.video-event-zh { font-size: 21px; color: #849074; margin: 0; letter-spacing: .08em; }
.video-portrait { position: absolute; top: 295px; bottom: 0; left: -8px; right: 30px; }
.video-portrait img { height: 100%; width: 100%; display: block; object-fit: contain; object-position: 50% 100%; mix-blend-mode: multiply; }
.video-content { display: flex; align-items: center; min-height: 0; position: relative; }
.video-opening, .video-reading, .video-ending { width: 100%; }
.video-kicker { color: var(--rust); font-size: 22px; letter-spacing: .18em; margin: 0 0 27px; }
.video-opening h2 { font-size: 88px; line-height: 2.1; letter-spacing: .06em; margin: 0 0 12px; }
.video-opening h2 rt { font-size: .35em; color: #6d8060; }
.video-opening-subtitle { font: 38px/2.1 var(--serif); color: #47643d; margin: 0 0 23px; }
.video-opening-subtitle rt { font-size: .43em; }
.video-opening-zh { color: #77836b; font-size: 27px; line-height: 1.8; margin: 0; }
.video-opening-rule { width: 72px; height: 3px; background: #bb7d61; margin: 42px 0 31px; }
.video-opening-caption { font: 28px/1.7 var(--serif); color: #7d886f; letter-spacing: .06em; margin: 0; }
.video-section-label { font-size: 18px; letter-spacing: .08em; color: #8d977f; margin: 0 0 23px; }
.video-japanese { font: 56px/1.95 var(--serif); color: #283d2b; line-break: strict; overflow-wrap: break-word; margin: 0; }
.video-japanese rt { font: 400 24px/1.5 var(--sans); color: #698059; }
.video-translation { margin-top: 31px; padding-left: 24px; border-left: 3px solid #ced9c2; }
.video-translation > span { display: block; font-size: 17px; color: #8a967d; margin-bottom: 7px; }
.video-translation > p { font: 32px/1.75 var(--sans); color: #67775c; margin: 0; }
/* Reserve the translation space so switching it off never moves the Japanese. */
.video-canvas.hide-zh .translation { display: block; visibility: hidden; }
.video-ending h2 { font: 500 64px/1.8 var(--serif); color: var(--green); margin: 0 0 20px; }
.video-ending-zh { font-size: 29px; color: #7a856d; margin: 0; }
#video-ending-summary { font-size: 30px; line-height: 1.8; color: #66795b; margin: 0 0 27px; }
.video-ending-followup { color: #829074; font: 25px/1.8 var(--serif); margin: 0; }
.video-footer { position: absolute; left: 100px; right: 100px; bottom: 84px; display: flex; gap: 40px; align-items: center; color: #89957b; font-size: 17px; }
.video-progress { width: 260px; height: 3px; background: #e2e6d8; margin-left: auto; }
.video-progress > span { display: block; height: 100%; background: #709060; }
.video-page { font-size: 19px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.recording-navigation { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 17px 0 13px; }
.recording-navigation button:disabled { color: #a8b19e; cursor: default; }
.recording-navigation select { max-width: 280px; }
#slide-status { font-size: 11px; color: #7e8a71; min-width: 44px; }
.recording-help { color: #7c8771; font-size: 11px; margin: 0; text-align: center; }
.recording-help > span { margin: 0 6px; }
.recording-help kbd { font: inherit; padding: 1px 4px; border: 1px solid #cbd5c1; border-radius: 3px; margin-right: 3px; }
.recording-notice { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--rust); }
.recording-notice:empty { display: none; }
@media (max-width: 780px) {
  .recording-header, .recording-workspace { width: calc(100% - 32px); }
  .recording-header { flex-wrap: wrap; gap: 12px; margin-top: 20px; }
  .recording-header > a { width: 100%; }
  .recording-header h1 { font-size: 18px; }
  .recording-controls { flex-wrap: wrap; gap: 12px; }
  .recording-options { flex-wrap: wrap; }
  .recording-navigation { flex-wrap: wrap; gap: 12px; }
  .recording-navigation label { order: 1; width: 100%; justify-content: center; }
  .recording-help { line-height: 2.2; }
}
.video-sidebar {display:flex;flex-direction:column}
.video-portrait {position:static;min-height:0;flex:1;margin-top:20px}
.video-sidebar h2 {margin:0 0 6px;line-height:1.9;overflow-wrap:anywhere}
.video-year {flex-wrap:wrap}
.video-year>b {font-size:88px;overflow-wrap:anywhere}
.video-source {max-width:1300px}
#video-source {max-width:1260px;font-size:15px}
.video-opening h2 {line-height:1.85;overflow-wrap:anywhere}
.video-opening-subtitle {font-size:32px;line-height:1.9}

.annotation-layer { position: absolute; inset: 0; width: 1920px; height: 1080px; z-index: 2; pointer-events: none; }
.video-stage.is-annotating .annotation-layer { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.video-stage.is-annotating .annotation-layer.is-erasing { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='11' fill='white' fill-opacity='.55' stroke='%23397452' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, crosshair; }
.annotation-layer g { pointer-events: none; }
.annotation-dock { position: absolute; bottom: 18px; right: 18px; z-index: 3; display: flex; align-items: flex-end; flex-direction: column; gap: 7px; max-width: calc(100% - 36px); cursor: auto; font: 12px/1.5 var(--sans); }
.video-stage:not(:fullscreen):not(.is-annotating) .annotation-dock { display: none; }
.annotation-dock button, .annotation-dock select { font: inherit; cursor: pointer; border: 1px solid #d2d9ca; border-radius: 5px; background: #fcfcf6; color: #354d39; padding: 7px 10px; min-height: 36px; white-space: nowrap; }
.annotation-dock button:hover { background: #eaf0e3; }
.annotation-dock button:focus-visible, .annotation-dock select:focus-visible { outline: 2px solid #779564; outline-offset: 2px; }
.annotation-dock button[aria-pressed="true"] { background: #e3eddc; border-color: #8ca77b; }
.annotation-dock button:disabled { color: #a3ad9a; background: #f2f4eb; cursor: default; }
#annotation-toggle { box-shadow: 0 2px 12px #1936261f; }
#annotation-toggle kbd { font: inherit; margin-left: 6px; opacity: .55; }
.annotation-tools { background: #fbfcf6f7; border: 1px solid #ccd8c1; border-radius: 9px; box-shadow: 0 4px 20px #19362624; padding: 10px; }
.annotation-tools-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.annotation-tool-group, .annotation-colors { display: flex; gap: 4px; }
.annotation-colors button { width: 32px; min-height: 32px; padding: 0; border: 2px solid transparent; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.annotation-colors button::before { content: ""; background: var(--ink-color); width: 19px; height: 19px; border-radius: 50%; }
.annotation-colors button[aria-pressed="true"] { border-color: var(--ink-color); background: transparent; }
.annotation-size { display: flex; align-items: center; gap: 5px; color: #6b7b60; }
.annotation-size select { padding: 6px; }
.annotation-tools-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 8px; color: #78866c; font-size: 11px; }
.annotation-tools-footer > div { display: flex; align-items: center; gap: 10px; }
.annotation-tools-footer button { min-height: 30px; padding: 3px 10px; }
#annotation-page { font-variant-numeric: tabular-nums; white-space: nowrap; }
.annotation-help { margin-top: 7px; }
@media (pointer: coarse) {
  .annotation-dock button, .annotation-dock select { min-height: 44px; }
  .annotation-colors button { width: 44px; }
}
