/* Stem modal - Music / artist profili / History Of Time ortak */

.stem-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

.stem-modal {
    width: 70%;
    max-width: 900px;
    background: #121212;
    color: #e0e0e0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    outline: 1px solid #2a2a2a;
}

.stem-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
    background: #171717;
}

.stem-modal-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
}

.stem-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
}

.stem-format-toggle {
    display: flex;
    gap: 8px;
}

.stem-format-btn {
    background: transparent;
    color: #c3c3c3;
    border: 1px solid #414141;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stem-format-btn.is-active {
    color: #ffffff;
    background-color: #f7641f;
    border-color: #f7641f;
}

.stem-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 16px 20px;
}

.stem-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #232323;
}

.stem-row:last-child {
    border-bottom: none;
}

.stem-name {
    width: 180px;
    font-size: 13px;
    color: #cfcfcf;
    font-weight: 600;
}

.stem-wave {
    flex: 1;
    min-height: 50px;
}

.stem-actions {
    width: 150px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.stem-play {
    background: transparent;
    color: #c3c3c3;
    border: 1px solid #414141;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stem-play:hover {
    color: white;
    background-color: #4d4d4d;
}

.stem-download {
    background: transparent;
    color: #c3c3c3;
    border: 1px solid #414141;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.stem-download:hover {
    color: white;
    background-color: #4d4d4d;
}

.stem-download.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.stem-empty {
    color: #9d9d9d;
    font-weight: 600;
    padding: 10px 0;
}

.stem-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #2a2a2a;
    background: #171717;
}

.stem-download-all {
    background: transparent;
    color: #4ea3ff;
    border: 1px solid #4ea3ff;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stem-download-all:hover {
    color: #8ec6ff;
    border-color: #8ec6ff;
}

.stem-close {
    background: transparent;
    color: #c3c3c3;
    border: 1px solid #414141;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stem-close:hover {
    color: white;
    background-color: #4d4d4d;
}
