body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

.video-container {
    width: 100%;
    height: calc(100vw * 16 / 9); 
    max-width: 400px; 
    max-height: 100vh; 
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
    position: relative;
}

.video-item {
    display: none;
    height: calc(100vw * 16 / 9); 
    max-height: 100vh; 
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%; 
    height: auto; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.video-actions {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%); /* 垂直居中 */
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.video-actions span {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
    cursor: pointer;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
}

.video-info h3 {
    margin: 0;
}

.start-game-btn {
    position: absolute;
    bottom: 10px; /* 定位到视频底部 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    background-color: white; /* 白色背景 */
    color: black; /* 黑色文字 */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.like-count,
.dislike-count {
    color: white;
    font-size: 14px;
}

/* 左侧功能按钮容器样式 */
.left-actions {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0; /* 默认隐藏 */
    transition: opacity 0.3s ease;
}

/* 激活状态的视频项对应的左侧功能按钮显示 */
.video-item[data-state="active"] .left-actions {
    opacity: 1;
}

/* 功能按钮通用样式 */
.left-actions > span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 按钮点击时的样式 */
.left-actions > span:active {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
}
