/* components/my-video.wxss */ .live-content { max-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1000; } .video { width: 100%; min-height: 400rpx; /* 200px -> 400rpx */ background-color: #eeeeee; } .screen { .video { height: 100%; position: absolute; z-index: -1; } } .tools { position: absolute; display: flex; width: 100%; height: 100%; bottom: 0; justify-content: space-between; align-items: flex-end; color: white; transition: opacity 0.3s ease; } .video-poster { width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: flex; justify-content: center; align-items: center; background-color: rgba(0, 0, 0, 0.3); z-index: 2; .play-button { width: 100rpx; height: 100rpx; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; background-color: rgba(0, 0, 0, 0.7); .play-icon { font-size: 50rpx; color:white; margin-left: 6rpx; margin-bottom: 3rpx; } } } .poster-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; } .cover { position: absolute; bottom: 0; z-index: 998; height: 20%; width: 70%; left: 10%; background-color: rgba(255, 255, 255, 0.007); }