/* 芒果视频播放器页面样式 */

.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: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    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,0.3);
    border-top: 4px solid #ff6b35;
    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(255,107,53,0.9);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255,107,53,0.3);
}

.big-play-btn:hover {
    background: #ff6b35;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(255,107,53,0.5);
}

/* 播放器控制栏 */
.player-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    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, #ff6b35, #f7931e);
    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%;
}

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

.speed-select,
.quality-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;
}

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

/* 弹幕输入 */
.danmaku-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.danmaku-input input {
    flex: 1;
    padding: 10px 15px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.danmaku-input input::placeholder {
    color: #888;
}

.danmaku-input input:focus {
    outline: none;
    border-color: #ff6b35;
}

.send-danmaku {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.send-danmaku:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

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

.video-info-card,
.playlist-section,
.related-videos {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.video-info-card h4 {
    color: #2c3e50;
    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: #7f8c8d;
    line-height: 1.6;
    font-size: 14px;
}

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

.playlist {
    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;
}

.playlist-item:hover,
.playlist-item.active {
    background: #f8f9fa;
    transform: translateX(5px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(247,147,30,0.1));
    border-left: 3px solid #ff6b35;
}

.item-thumb {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

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

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

/* 相关视频列表 */
.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;
}

.related-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-thumb {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
}

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

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .player-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .player-sidebar {
        order: -1;
    }
    
    .video-info-card,
    .playlist-section,
    .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;
    }
    
    .danmaku-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .video-stats {
        justify-content: center;
    }
}