.msi-buttons {
    display: flex;
    justify-content: center; /* 改为居中对齐 */
    width: 100%;
    margin-top: 5px; /* 增加顶部边距 */
    padding: 8px 0; /* 增加上下内边距 */
    background-color: #2a2a2a; /* 添加一个稍微深一点的背景色 */
    border-radius: 4px; /* 添加圆角 */
}

.track-buttons {
    /* ... 其他样式 ... */
    padding-bottom: 15px; /* 增加底部内边距，为 msi-buttons 腾出空间 */
    transition: none; /* 移除所有过渡效果 */
    transform: none; /* 确保没有变换 */
    background-color: #333333; /* 将背景色调暗一些，从 #3a3a3a 改为 #333333 */
}

.track-buttons:hover,
.track-buttons:active,
.track-buttons.selected {
    transform: none; /* 确保在悬停、激活和选中状态下也没有变换 */
}

.mute-button, .solo-button, .import-audio, .url-button, .z-button {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ffffff;
    background-color: transparent;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    color: #e0e0e0;
    transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
}

.mute-button:hover, .solo-button:hover, .import-audio:hover, .url-button:hover, .z-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mute-button:active, .solo-button:active, .import-audio:active, .url-button:active, .z-button:active {
    transform: scale(0.95);
}

.mute-button.active {
    background-color: #ffff00; /* 黄色 */
    color: #000000; /* 黑色文字，以提高可读性 */
}

.solo-button.active {
    background-color: #ff0000; /* 红色 */
    color: #ffffff; /* 白色文字，以提高可读性 */
}

.url-button {
    background-color: #4a4a4a; /* 给 URL 按钮一个稍微不同的背景色 */
}

.url-button:hover {
    background-color: #5a5a5a;
}

.volume-slider, .pan-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; /* 确保滑块占满容器宽度 */
    height: 6px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 3px;
    margin: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.volume-slider::-webkit-slider-thumb, .pan-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
    margin-top: -3px; /* 将这个值从 -4px 改为 -3px，使块稍微下移 */
}

.volume-slider::-moz-range-thumb, .pan-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
    margin-top: -3px; /* 同样将这个值从 -4px 改为 -3px */
}

/* 其他样式保持不变 */
.volume-slider::-webkit-slider-thumb:hover, .pan-slider::-webkit-slider-thumb:hover,
.volume-slider::-moz-range-thumb:hover, .pan-slider::-moz-range-thumb:hover {
    background: #0056b3;
}

/* 为 Firefox 添加特定的轨道样式 */
.volume-slider::-moz-range-track, .pan-slider::-moz-range-track {
    height: 6px;
    background: #d3d3d3;
    border-radius: 3px;
}

.volume-control, .pan-control {
    position: relative;
    border: none;
    border-bottom: none;
    margin-bottom: 5px;
    height: 27px;
    overflow: visible; /* 改为 visible，允许内容溢出 */
    display: flex;
    flex-direction: column; /* 改为纵向排列 */
    justify-content: center;
    width: 100%;
    padding: 0; /* 移除内边距 */
}

.volume-header, .pan-header {
    width: 100%; /* 确保header占满宽度 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
}

.volume-slider, .pan-slider {
    width: 100%; /* 确滑块占满宽度 */
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 3px;
    margin: 0;
}

/* 移除之前添加的调试边框 */
.volume-control {
    border: none;
}

/* 移除最小宽度限制 */
.volume-slider {
    min-width: auto;
}

/* 确保图标和标签正确对齐 */
.volume-icon, .pan-icon,
.volume-label, .pan-label {
    display: inline-block;
    vertical-align: middle;
}

/* 调整值的位置 */
.volume-value, .pan-value {
    margin-left: auto;
    font-size: 12px; /* 设置一个明确的字体大小 */
}

.url-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.url-modal-content {
    background-color: #2a2a2a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 5px;
    color: #e0e0e0;
}

.url-modal-content h2 {
    margin-top: 0;
    font-size: 18px;
}

.url-modal-content input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    box-sizing: border-box;
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
    border-radius: 3px;
}

.url-modal-buttons {
    text-align: right;
    margin-top: 15px;
}

.url-modal-buttons button {
    padding: 5px 10px;
    margin-left: 10px;
    background-color: #4a4a4a;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.url-modal-buttons button:hover {
    background-color: #5a5a5a;
}

/* 删除K按钮相关的样式 */
.key-button {
    /* 删除这个选择器及其所有样式 */
}

.url-modal-content ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    max-height: 200px;
    overflow-y: auto;
}

.url-modal-content li {
    margin-bottom: 5px;
}

.url-modal-content a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

.url-modal-content a:hover {
    text-decoration: underline;
}

.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.track-watermark {
    position: absolute;
    top: 50%; /* 将水印移到垂直中心 */
    left: 50%; /* 将水印移到水平中心 */
    transform: translate(-50%, -50%); /* 确保水印完全居中 */
    font-size: 16px; /* 增大字体大小 */
    color: rgba(255, 255, 255, 0.2); /* 稍微增加不透明度 */
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: bold; /* 加粗字体 */
}

/* 添加到文件末尾 */

.pitch-shift-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pitch-shift-content {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.pitch-shift-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.pitch-shift-option {
    padding: 10px;
    background-color: #3a3a3a;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.pitch-shift-option:hover {
    background-color: #4a44a4;
}

#pitch-shift-close {
    padding: 10px 20px;
    background-color: #4a4a4a;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#pitch-shift-close:hover {
    background-color: #5a5a5a;
}

.pitch-shift-popup {
    position: absolute;
    background-color: #2a2a2a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 10px;
    z-index: 1000;
}

.pitch-shift-value {
    text-align: center;
    font-size: 16px;
    margin-bottom: 5px;
}

.pitch-shift-slider {
    width: 100px;
    height: 200px;
    background: linear-gradient(to bottom, #4CAF50, #FFF, #FF5722);
    cursor: ns-resize;
}

/* 为 Z 按钮添加特定样式 */
.z-button {
    background-color: #4a4a4a; /* 给 Z 按钮一个稍微不同的背景色 */
}

.z-button:hover {
    background-color: #5a5a5a;
}

.z-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.z-modal-content {
    background-color: #2a2a2a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 5px;
    color: #e0e0e0;
}

.z-modal-content h2 {
    margin-top: 0;
    font-size: 18px;
}

.z-modal-content input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    box-sizing: border-box;
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #e0e0e0;
    border-radius: 3px;
}

.parse-address {
    margin-bottom: 15px;
}

.parse-address label {
    display: block;
    margin-bottom: 5px;
}

.z-modal-buttons {
    text-align: right;
    margin-top: 15px;
}

.z-modal-buttons button {
    padding: 5px 10px;
    margin-left: 10px;
    background-color: #4a4a4a;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.z-modal-buttons button:hover {
    background-color: #5a5a5a;
}

/* 添加到文件末尾 */

.blue-button {
    background-color: #007bff; /* 蓝色背景 */
    color: white; /* 白色文字 */
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.blue-button:hover {
    background-color: #0056b3; /* 鼠标悬停时的深蓝色 */
}

/* 可能需要调整 z-modal-buttons 中的按钮样式以保持一致性 */
.z-modal-buttons button {
    padding: 5px 10px;
    margin-left: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.z-modal-buttons button:not(.blue-button) {
    background-color: #4a4a4a;
    color: #e0e0e0;
}

.z-modal-buttons button:not(.blue-button):hover {
    background-color: #5a5a5a;
}

.z-modal-buttons button.blue-button {
    background-color: #007bff !important; /* 使用 !important 确保样式被应用 */
    color: white !important;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.z-modal-buttons button.blue-button:hover {
    background-color: #0056b3 !important;
}
