.nutswp-bilibili-video {
    position: relative;
    overflow: hidden;
    background-color: #000; /* 添加背景色以确保封面图可见 */
}

.nutswp-bilibili-video .video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* 确保封面图覆盖整个区域 */
    cursor: pointer;
    z-index: 1; /* 确保封面图在 iframe 上方 */
}

.nutswp-bilibili-video .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    z-index: 2; /* 确保播放按钮在封面图上方 */
    background-color: rgba(0, 0, 0, 0.5); /* 默认背景颜色 */
    border-radius: 50%; /* 圆形按钮 */
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.nutswp-bilibili-video .play-button:hover {
    background-color: rgba(0, 0, 0, 0.8); /* 鼠标悬停时加深背景 */
}

.nutswp-bilibili-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 0; /* 确保 iframe 在封面图下方 */
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .nutswp-bilibili-video {
        width: var(--width-tablet) !important;
        height: var(--height-tablet) !important;
    }
}

@media (max-width: 767px) {
    .nutswp-bilibili-video {
        width: var(--width-mobile) !important;
        height: var(--height-mobile) !important;
    }
}