:root { --ink: #172027; --muted: #69757d; --line: #dfe5e8; --green: #178052; --amber: #e3a223; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #f3f5f6; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
button, input { font: inherit; }
.video-page { min-height: 100vh; background: #eef1f2; }
.video-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100% - 1080px) / 2)); background: white; border-bottom: 1px solid var(--line); }
.video-header h1 { margin: 2px 0 0; font-size: 20px; letter-spacing: 0; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; }
.records-link { padding: 9px 14px; color: var(--green); border: 1px solid #b8d4c7; border-radius: 4px; text-decoration: none; font-size: 14px; }
.video-main { width: min(1080px, 100%); margin: 0 auto; padding:0px 24px;}
.video-shell { position: relative; overflow: hidden; aspect-ratio: 16 / 9; color: white; background: #0b0e10; box-shadow: 0 14px 38px rgba(13, 25, 31, .2); }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: contain; }
.video-topline, .video-bottomline { position: absolute; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; z-index: 2; pointer-events: none; }
.video-topline { top: 0; gap: 16px; padding: 18px; font-size: 12px; background: linear-gradient(rgba(0,0,0,.62), transparent);display: flex;justify-content: flex-end; }
.video-topline b { font-weight: 600; }
.video-bottomline { bottom: 0; gap: 14px; padding: 24px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: auto; }
.live-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #43d68d; }
.progress-wrap { flex: 1; display: flex; align-items: center; gap: 12px; font: 12px Consolas, monospace; }
.progress-wrap[hidden] { display: none; }
.progress-track { flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.3); }
.progress-track i { width: 0; height: 100%; display: block; background: #51d493; }
.video-shell:fullscreen, .video-shell:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto; background: #000; }
.fullscreen-toggle { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; cursor: pointer; color: white; border: 1px solid rgba(255,255,255,.24); border-radius: 4px; background-color: rgba(10,14,16,.42); transition: background-color .16s, border-color .16s, transform .16s; }
.fullscreen-toggle::before { content: ""; display: block; width: 20px; height: 20px; margin: auto; background: linear-gradient(currentColor,currentColor) left top / 8px 2px no-repeat, linear-gradient(currentColor,currentColor) left top / 2px 8px no-repeat, linear-gradient(currentColor,currentColor) right top / 8px 2px no-repeat, linear-gradient(currentColor,currentColor) right top / 2px 8px no-repeat, linear-gradient(currentColor,currentColor) left bottom / 8px 2px no-repeat, linear-gradient(currentColor,currentColor) left bottom / 2px 8px no-repeat, linear-gradient(currentColor,currentColor) right bottom / 8px 2px no-repeat, linear-gradient(currentColor,currentColor) right bottom / 2px 8px no-repeat; }
.fullscreen-toggle:hover { border-color: rgba(255,255,255,.55); background-color: rgba(10,14,16,.72); }
.fullscreen-toggle:active { transform: scale(.94); }
.fullscreen-toggle:focus-visible { outline: 2px solid #51d493; outline-offset: 2px; }
/* 非全屏仅保留 video 原生全屏按钮；全屏后这些规则不再匹配，恢复全部默认控件。 */
video:not(:fullscreen)::-webkit-media-controls-play-button,
video:not(:fullscreen)::-webkit-media-controls-timeline,
video:not(:fullscreen)::-webkit-media-controls-current-time-display,
video:not(:fullscreen)::-webkit-media-controls-time-remaining-display,
video:not(:fullscreen)::-webkit-media-controls-mute-button,
video:not(:fullscreen)::-webkit-media-controls-volume-slider,
video:not(:fullscreen)::-webkit-media-controls-toggle-closed-captions-button,
video:not(:fullscreen)::-webkit-media-controls-picture-in-picture-button,
video:not(:fullscreen)::-webkit-media-controls-overflow-button { display: none !important; }
.play-fallback { position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%); min-width: 176px; padding: 13px 20px; cursor: pointer; color: white; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; background: rgba(0,0,0,.78); font-weight: 700; }
.play-icon { margin-right: 9px; color: #55d897; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 10; transform: translate(-50%, 15px); padding: 11px 18px; color: white; border-radius: 4px; background: #202a2f; opacity: 0; pointer-events: none; transition: .2s; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 640px) {
  .video-header { height: 66px; padding: 0 16px; }
  .video-header h1 { max-width: 220px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .video-main { padding:0; }
  .video-shell { aspect-ratio: 16 / 9; }
  .video-topline { padding: 12px; }
  .video-bottomline { gap: 8px; padding: 20px 8px 8px; }
  #timeText { min-width: 78px; }
}
