body {
    margin: 0;
    padding: 0;
    
    background: url('../../../../igame/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    text-align: center;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
 /*自定义字体*/
/* 定义字体 */
        @font-face {
            font-family: 'MyCustomFont';
            src: url('../../../../font/gufeng.woff') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap; /* 确保文本在字体加载期间可见 */
        }
        
        /* 应用字体 */
        body {
            font-family: 'MyCustomFont', sans-serif;
        }
/*自定义字体结束*/
        body {
            overflow: hidden;
            height: 100vh;
        }
.container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    margin: 20px 0;
    background-color: #000;
    
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #fff;
    z-index: 10;
}

.title {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.subtitle {
    font-size: 20px;
    margin: 5px 0;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}
/* 新增和修改的样式 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    cursor: pointer;
}

.play-button {
    text-align: center;
    color: white;
}

.play-button svg {
    width: 80px;
    height: 80px;
    fill: #fff;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.play-button p {
    margin-top: 10px;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.error-message {
    text-align: center;
    padding: 20px;
}

.error-message small {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* 缓冲指示器 */
.video-container.buffering::before {
    content: '缓冲中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 15;
    display: block;
}

/* 移动端优化 */
@media (max-width: 600px) {
    .play-button svg {
        width: 60px;
        height: 60px;
    }
    
    .play-button p {
        font-size: 16px;
    }
    
    .title {
        font-size: 22px;
    }
    
    .subtitle, .countdown {
        font-size: 18px;
    }
}
/* 增加缓冲提示UI */
.video-container::before {
    content: '缓冲中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 20;
}

.video-container.buffering::before {
    display: block;
}
.countdown {
    font-size: 22px;
    margin: 15px 0;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
    .title {
        font-size: 22px;
    }
    
    .subtitle, .countdown {
        font-size: 18px;
    }
}