/* 福利视频播放器页面样式 */

.player-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.player-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 60px;
}

/* 视频播放器区域 */
.video-player-wrapper {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.video-player {
    position: relative;
    width: 100%;
}

.player-screen {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.big-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(102,126,234,0.9);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102,126,234,0.4);
}

.big-play-btn:hover {
    background: #667eea;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(102,126,234,0.6);
}

/* 播放器控制栏 */
.player-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.progress-bar {
    margin-bottom: 15px;
}

.progress-track {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 25%;
    position: relative;
}

.progress-handle {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 12px;
    margin-top: 5px;
}

.control-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-controls,
.right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-track {
    height: 100%;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 70%;
}

.free-indicator {
    color: #00d2d3;
    font-size: 12px;
    font-weight: 500;
}

.center-info {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.quality-select, .speed-select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.quality-select option, .speed-select option {
    background: #333;
    color: white;
}

/* 播放器侧边栏 */
.player-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-info-card,
.playlist,
.related-videos {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.video-info-card h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.video-info-card h4 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.video-stats span {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.video-desc {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 播放列表 */
.playlist h4,
.related-videos h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.playlist-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.playlist-item:hover,
.playlist-item.active {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.playlist-item.active {
    background: rgba(102,126,234,0.1);
    border-left: 3px solid #667eea;
}

.item-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
}

.movie-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-thumb {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.thriller-thumb {
    background: linear-gradient(135deg, #5f27cd, #341f97);
}

.item-info {
    flex: 1;
}

.item-title {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-duration {
    font-size: 12px;
    color: #999;
}

/* 相关视频列表 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.related-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
}

.related-title {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.related-rating {
    font-size: 12px;
    color: #ffd700;
}

/* 用户评论区域 */
.user-reviews {
    margin-top: 60px;
}

.user-reviews h3 {
    text-align: center;
    font-size: 32px;
    color: white;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin-bottom: 15px;
}

.review-content h5 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.rating {
    color: #ffd700;
    font-size: 14px;
    margin-bottom: 15px;
}

.review-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-time {
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .player-sidebar {
        order: -1;
    }
    
    .video-info-card,
    .playlist,
    .related-videos {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .player-main {
        padding: 15px;
    }
    
    .player-screen {
        height: 250px;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .left-controls,
    .right-controls {
        justify-content: center;
    }
    
    .center-info {
        order: -1;
        text-align: center;
    }
    
    .video-stats {
        justify-content: center;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
}