/* ===== 分轨同步播放器 - 注入样式 ===== */
.stem-inject-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.stem-inject-modal {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: #1a1a1d;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.stem-inject-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2e;
}
.stem-inject-title {
    font-size: 16px;
    font-weight: bold;
}
.stem-inject-close {
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stem-inject-close:hover { background: #ffffff14; }

.stem-inject-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #2a2a2e;
}
.stem-inject-play-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: #e91e63;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stem-inject-play-btn:hover { background: #c2185b; }
.stem-inject-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stem-inject-time {
    font-size: 12px;
    color: #aaa;
    min-width: 50px;
    text-align: center;
}
.stem-inject-progress {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.stem-inject-progress-bar {
    height: 100%;
    background: #e91e63;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}
.stem-inject-master-vol {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
}
.stem-inject-master-vol input[type=range] {
    width: 80px;
}

.stem-inject-tracks {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 20px;
}
.stem-inject-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #222226;
    transition: background 0.2s;
}
.stem-inject-track:hover { background: #2a2a2e; }
.stem-inject-track.dimmed { opacity: 0.4; }

.stem-inject-track-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}
.stem-inject-track-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stem-inject-track-dur {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}
.stem-inject-track-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.stem-inject-btn {
    width: 28px; height: 28px;
    border-radius: 4px;
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.stem-inject-btn:hover { border-color: #666; color: #fff; }
.stem-inject-btn.solo.active { background: #ff9800; border-color: #ff9800; color: #fff; }
.stem-inject-btn.mute.active { background: #f44336; border-color: #f44336; color: #fff; }
.stem-inject-btn.download { color: #4caf50; border-color: #2e7d32; }
.stem-inject-btn.download:hover { background: #2e7d32; color: #fff; }

.stem-inject-track-vol {
    width: 70px;
    flex-shrink: 0;
}

.stem-inject-waveform {
    width: 100%;
    height: 36px;
    margin-top: 6px;
    display: block;
}

.stem-inject-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}
.stem-inject-error {
    text-align: center;
    padding: 40px;
    color: #f44336;
}

/* 隐藏原有的版本切换按钮 */
.version-switch { display: none !important; }
