* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: rgba(244, 244, 244, 0.7);
    font-family: "Microsoft YaHei", sans-serif;
}

.video-container {
    position: relative;
    width: 480px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 封面图始终显示 */
.video-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

/* 隐藏音频元素 */
.audio-player {
    display: none;
}

.duration {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 16px;
    z-index: 3;
}

.video-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(3px);
}

.video-container:hover .video-mask {
    transform: translateY(0);
}

.video-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.video-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-meta {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.video-container:hover .play-button {
    opacity: 1;
}

.play-button svg {
    fill: white;
    opacity: 0.9;
}