* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 主布局 - 使用flex布局 */
.player-layout {
    display: flex;
    width: 95%;
    height: 90vh;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* 视频区域 */
.video-section {
    flex: 3;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 信息区域 - 修改为黑色背景方案 */
.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #121212; /* 深色背景 */
    border-left: 1px solid #2a2a2a; /* 深色边框 */
    padding: 20px;
    color: #e0e0e0; /* 浅色文字 */
}

/* 固定文件夹区域 - 调整为深色方案 */
.fixed-folder-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #1e1e1e; /* 深色背景 */
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.fixed-folder-info {
    display: flex;
    align-items: center;
    color: #e0e0e0; /* 浅色文字 */
}

.fixed-folder-info iconify-icon {
    color: #f39c12;
    margin-right: 8px;
}

/* 优化加载固定文件夹按钮样式 */
#loadFixedFolderBtn {
    background-color: #2c2c2c;
    color: #f39c12;
    border: 1px solid #f39c12;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#loadFixedFolderBtn:hover {
    background-color: #f39c12;
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

#loadFixedFolderBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(243, 156, 18, 0.2);
}

#loadFixedFolderBtn iconify-icon {
    transition: transform 0.3s ease;
}

#loadFixedFolderBtn:hover iconify-icon {
    transform: rotate(180deg);
}

/* 播放列表区域 - 调整为深色方案 */
.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a; /* 深色边框 */
}

.playlist-header h2 {
    font-size: 1.2rem;
    color: #e0e0e0; /* 浅色文字 */
    margin: 0;
}

.playlist-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: #b0b0b0; /* 浅灰色图标 */
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.playlist-controls button:hover {
    background-color: #2a2a2a; /* 深灰色悬停背景 */
    color: #ffffff;
}

#playlist li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #1e1e1e; /* 深色背景 */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0; /* 浅色文字 */
}

#playlist li:hover {
    background-color: #2a2a2a; /* 深灰色悬停背景 */
    transform: translateX(2px);
}

#playlist li.active {
    background-color: #2c3e50; /* 深蓝色活动项背景 */
    border-left: 3px solid #4a6cf7;
}

.video-item-duration {
    font-size: 0.8rem;
    color: #9e9e9e; /* 灰色次要文字 */
    margin-top: 3px;
}

/* 信息消息样式 - 调整为深色方案 */
.info-message {
    background-color: #1e1e1e; /* 深色背景 */
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
}

.info-message p {
    margin: 5px 0;
    color: #e0e0e0; /* 浅色文字 */
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .player-layout {
        flex-direction: column;
        height: 95vh;
    }
    
    .video-section {
        flex: 2;
    }
    
    .info-section {
        flex: 1;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .player-layout {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .fixed-folder-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    #loadFixedFolderBtn {
        width: 100%;
        justify-content: center;
    }
}