/* SRT字幕合并工具样式 - 与lrcMaker完全一致 */
* {
    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;
}

/* 按钮样式 */
.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-3 {
    background-color: #e67e22;
}

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

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

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

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 12px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 标题样式 */
.main-content h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.2;
    padding: 0;
}

/* 内容容器 - 左右布局 */
.content-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    height: calc(100vh - 200px);
}

/* 歌词容器样式 - 与lrcMaker完全一致 */
.lyrics-container {
    flex: 1;
    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: 0;
}

/* 标题行样式 - 与lrcMaker完全一致 */
.lyrics-header {
    display: grid;
    grid-template-columns: 60px 100px 100px 1fr;
    padding: 6px 15px;
    background-color: #34495e;
    color: white;
    font-weight: bold;
    font-size: 12px;
    height: 32px;
    align-items: center;
}

/* 左侧文件列表标题样式 */
.lyrics-container:first-child .lyrics-header {
    display: flex;
    justify-content: center;
}

/* 右侧唱词列表标题样式 */
.lyrics-container:last-child .lyrics-header {
    display: grid;
    grid-template-columns: 60px 100px 100px 1fr;
    padding: 6px 15px;
    background-color: #34495e;
    color: white;
    font-weight: bold;
    font-size: 12px;
    height: 32px;
    align-items: center;
    border-bottom: none;
}

/* 列表区域样式 */
.lyrics-list {
    overflow-y: auto;
    flex: 1;
}

/* 文件列表内容样式 */
.file-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 12px;
    flex: 1;
    margin-right: 10px;
}

.subtitle-count {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    margin: 0;
}

/* 左侧文件列表项样式 */
#file-list .lyrics-item {
    cursor: pointer;
    padding: 4px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 28px;
}

#file-list .lyrics-item:hover {
    background-color: #f8f9fa;
}

#file-list .lyrics-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

/* 右侧唱词列表样式 - 与lrcMaker完全一致 */
#lyrics-list .lyrics-item {
    display: grid;
    grid-template-columns: 60px 100px 100px 1fr;
    padding: 4px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: center;
    min-height: 28px;
}

#lyrics-list .lyrics-item:hover {
    background-color: #f8f9fa;
}

#lyrics-list .lyrics-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

#lyrics-list .lyrics-index {
    color: #666;
    font-size: 12px;
}

#lyrics-list .lyrics-time {
    font-family: monospace;
    color: #e74c3c;
    font-weight: bold;
    font-size: 12px;
}

#lyrics-list .lyrics-time:last-of-type {
    color: #27ae60;
}

#lyrics-list .lyrics-text {
    padding-left: 10px;
    font-size: 12px;
    word-break: break-word;
}

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

/* 滚动条样式 - 与lrcMaker完全一致 */
.lyrics-list::-webkit-scrollbar {
    width: 8px;
}

.lyrics-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lyrics-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.lyrics-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lyrics-header,
    #lyrics-list .lyrics-item {
        grid-template-columns: 50px 90px 1fr;
        font-size: 13px;
    }
}