.vpp-video-player {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.vpp-player-container {
    position: relative;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* HTML5 视频播放器样式 */
.vpp-html5-player {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.vpp-html5-player-container {
    position: relative;
    background: #000;
    min-height: 200px;
}

/* 视频占位符和播放界面 */
.vpp-video-placeholder {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.vpp-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.vpp-video-placeholder:hover .vpp-play-overlay {
    background: rgba(0,0,0,0.5);
}

.vpp-play-trigger {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
    padding: 0;
}

.vpp-play-trigger:hover {
    transform: scale(1.05);
}

.vpp-play-trigger:active {
    transform: scale(0.95);
}

.vpp-play-text {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
}

.vpp-mobile-notice {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 手动播放提示 */
.vpp-manual-play-prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.vpp-manual-play-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.vpp-manual-play-btn:hover {
    background: #45a049;
}

.vpp-manual-play-prompt p {
    color: white;
    margin: 0;
    font-size: 14px;
}

/* 加载指示器 */
.vpp-loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.vpp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: vpp-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes vpp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vpp-loading-text {
    color: #fff;
    font-size: 14px;
    text-align: center;
}

/* YouTube/Vimeo 播放器容器 */
.vpp-youtube-player,
.vpp-vimeo-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.vpp-youtube-player iframe,
.vpp-vimeo-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 广告容器样式 */
.vpp-ad-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.vpp-ad-content {
    margin-bottom: 20px;
    max-width: 90%;
    text-align: center;
}

.vpp-ad-skip,
.vpp-ad-close {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    font-size: 14px;
    transition: background 0.3s;
    z-index: 31;
    position: relative;
}

.vpp-ad-skip:hover,
.vpp-ad-close:hover {
    background: #cc0000;
}

.vpp-ad-skip:disabled {
    background: #666;
    cursor: not-allowed;
}

/* 视频描述 */
.vpp-video-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: left;
    color: #555;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .vpp-player-container {
        border-radius: 0;
    }
    
    .vpp-play-trigger svg {
        width: 50px;
        height: 50px;
    }
    
    .vpp-play-text {
        font-size: 14px;
    }
    
    .vpp-mobile-notice {
        font-size: 11px;
        bottom: 10px;
    }
    
    .vpp-ad-skip,
    .vpp-ad-close {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .vpp-play-trigger svg {
        width: 40px;
        height: 40px;
    }
    
    .vpp-play-text {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .vpp-mobile-notice {
        font-size: 10px;
        bottom: 8px;
    }
    
    .vpp-video-description {
        padding: 10px;
        font-size: 14px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .vpp-player-container {
        max-width: 80vw;
    }
    
    .vpp-play-overlay {
        padding: 10px;
    }
    
    .vpp-play-trigger {
        transform: scale(0.8);
    }
}