/* LRC字幕制作工具样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

.container {
     display: flex;
     width: 100%;
     height: 100vh;
     max-width: none;
     margin: 0;
     padding: 0;
     background-color: white;
     border-radius: 0;
     box-shadow: none;
  }
  
  /* 左侧按钮区域 */
  .sidebar {
     width: 160px;
     background-color: #2c3e50;
     color: white;
     padding: 15px 10px;
     overflow-y: auto;
     display: flex;
     flex-direction: column;
     gap: 6px;
     flex-shrink: 0;
  }
  
  /* 主内容区域 */
.main-content {
    flex: 1;
    padding: 12px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.2;
    padding: 0;
}

/* 音频地址输入 */
.audio-input {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    height: 36px;
    gap: 8px;
}

.audio-input label {
    margin-right: 8px;
    font-weight: bold;
    color: #555;
    font-size: 12px;
    white-space: nowrap;
}

.audio-input input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    height: 24px;
    margin: 0;
}

/* 工具按钮样式 - 确保文字在垂直和水平方向都居中 */
.sidebar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 10px;
    margin-bottom: 4px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-align: center;
    height: 44px;
    line-height: 1.2;
    word-break: keep-all;
    white-space: normal;
    min-height: 44px;
}

/* 第一组按钮：导入导出相关 - 蓝色系 */
.sidebar .btn-group-1 {
    background-color: #3498db;
}

.sidebar .btn-group-1:hover {
    background-color: #2980b9;
}

/* 第二组按钮：播放控制相关 - 绿色系 */
.sidebar .btn-group-2 {
    background-color: #27ae60;
}

.sidebar .btn-group-2:hover {
    background-color: #229954;
}

/* 第三组按钮：标签操作相关 - 橙色系 */
.sidebar .btn-group-3 {
    background-color: #e67e22;
}

.sidebar .btn-group-3:hover {
    background-color: #d35400;
}

/* 第四组按钮：歌词管理相关 - 紫色系 */
.sidebar .btn-group-4 {
    background-color: #9b59b6;
}

.sidebar .btn-group-4:hover {
    background-color: #8e44ad;
}

/* 所有按钮的悬停和激活效果 */
.sidebar button:hover {
    transform: translateX(2px);
}

.sidebar button:active {
    transform: translateX(1px);
}

/* 计数器图片样式 */
.sidebar img {
    margin-top: 10px;
    max-width: 120px;
    max-height: 120px;
    border-radius: 4px;
}

/* 错误信息显示 */
.error-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
    font-size: 14px;
}

/* 内容容器 - 增大高度 */
.content-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    height: calc(100vh - 160px);
    min-height: 400px;
}

/* 歌词容器 */
.lyrics-container {
    flex: 2;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    min-height: 400px; /* 确保歌词容器有足够的最小高度 */
}

/* 标签页导航 */
.lyrics-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 15px;
    background-color: #34495e;
    color: white;
    font-weight: bold;
    font-size: 12px;
    height: 32px;
    align-items: center;
}

.lyrics-header span {
    padding: 4px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: white;
    background-color: transparent;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-header span:hover {
    background-color: #2c3e50;
    color: white;
}

.lyrics-header span.active {
    color: white;
    border-bottom-color: #3498db;
    background-color: #2c3e50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 歌词列表容器 */
.lyrics-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    flex: 1;
}

.lyrics-list textarea {
    flex: 1;
    width: 100%;
    border: none;
    padding: 12px 15px;
    resize: none;
    font-size: 12px;
    font-family: 'Microsoft YaHei', 'Courier New', monospace;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-y: auto;
    min-height: 300px; /* 确保最小高度能显示至少15行文字 */
}

.lyrics-list textarea:focus {
    outline: none;
}

/* 操作按钮区域 */
.lyrics-list > div {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
}

/* 下载按钮样式 */
.download-btn {
    background-color: #3498db;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 8px;
    font-size: 12px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #2980b9;
}

/* 清除按钮样式 */
.lyrics-list button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.lyrics-list button:hover {
    background-color: #c0392b;
}

/* 视频容器（使用说明区域） */
.video-container {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid #ddd;
}

.video-container h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.video-container ul {
    list-style: none;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.video-container li {
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.video-container li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 14px;
    line-height: 12px;
}

/* 隐藏的文件输入 */
input[type="file"] {
    display: none;
}

/* 滚动条样式 */
.lyrics-list textarea::-webkit-scrollbar,
.video-container ul::-webkit-scrollbar {
    width: 8px;
}

.lyrics-list textarea::-webkit-scrollbar-track,
.video-container ul::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lyrics-list textarea::-webkit-scrollbar-thumb,
.video-container ul::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.lyrics-list textarea::-webkit-scrollbar-thumb:hover,
.video-container ul::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }
    
    .sidebar button {
        width: calc(50% - 10px);
        margin: 5px;
        height: auto;
        min-height: 40px;
    }
    
    .content-container {
        flex-direction: column;
        height: calc(100vh - 250px);
    }
    
    .video-container {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
    }
    
    .lyrics-header {
        grid-template-columns: repeat(4, 1fr);
        font-size: 11px;
    }
}