/* 爱夜视频播放器页面样式 */

.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: rgba(0,0,0,0.9);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

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

.player-screen {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    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);
    backdrop-filter: blur(10px);
}

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

.night-mode-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blue-light-filter {
    width: 100%;
    height: 100%;
    background: rgba(255,165,0,0.05);
    mix-blend-mode: multiply;
}

/* 播放器控制栏 */
.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;
    backdrop-filter: blur(10px);
}

.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);
}

.control-btn.active {
    background: rgba(102,126,234,0.8);
    box-shadow: 0 0 15px rgba(102,126,234,0.5);
}

.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%;
}

.night-indicator {
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(102,126,234,0.5);
}

.center-info {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.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;
    backdrop-filter: blur(5px);
}

.speed-select option {
    background: #1a1a2e;
    color: white;
}

/* 夜间功能区域 */
.night-features {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.feature-toggle {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .4s;
    border-radius: 24px;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    padding-left: 30px;
    white-space: nowrap;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 0 15px rgba(102,126,234,0.3);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

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

.video-info-card,
.night-playlist,
.related-videos {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-info-card h3 {
    color: #667eea;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(102,126,234,0.5);
}

.video-info-card h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

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

.video-stats span {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.video-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 14px;
}

/* 播放列表 */
.night-playlist h4,
.related-videos h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.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;
    background: rgba(255,255,255,0.02);
}

.playlist-item:hover,
.playlist-item.active {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

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

.item-thumb.night-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: white;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-duration {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* 相关视频列表 */
.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: rgba(255,255,255,0.02);
}

.related-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.related-thumb.night-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: white;
    font-weight: 500;
    margin-bottom: 4px;
}

.related-rating {
    font-size: 12px;
    color: #FFD700;
    filter: drop-shadow(0 0 3px rgba(255,215,0,0.5));
}

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