table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

th, td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th:first-child, td:first-child {
    padding-left: 12px;
}

th:last-child, td:last-child {
    padding-right: 12px;
}

thead tr th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

th {
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    background: #f8f9fa;
}

th:hover {
    background: #e9ecef;
}

.song-row {
    cursor: pointer;
}

.song-row:hover {
    background: #f8f9fa;
}

.song-row.selected {
    background: #e8eaf6;
}

/* 调校列单元格 - 允许内容溢出，作为定位参考 */
td:nth-child(8) {
    overflow: visible;
    position: relative;
}

/* 调校标签基础样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    background: #e0e0e0;
    color: #666;
}

/* 调校标签 */
.tune-badge {
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}


/* 悬停时通过伪元素显示完整信息浮层（在原标签位置） */
.tune-badge:hover::before {
    content: attr(data-full-tune);
    position: absolute;
    left: 0;
    top: 0;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}